Re: TC1000 & Gentoo: new tablet X11 driver + nvidia drivers working

From: Václav Krpec <vaclav.krpec_at_acision.com>
Date: Thu, 20 Dec 2007 15:54:47 +0100

Hi david,

aka.bugle wrote:
> I need to map a hard button to "shutdown NOW" as My backlight
> sometimes goes out unexpectedly if the power cord gets jiggled (always
> at the worst moment!) It always comes back on with a reboot though...

IMHO the best solution is to configure acpid to shutdown the machine
if battery falls to critical discharge level. My acpi script
does it; use it if you like (note that the work is not completely
done, but at least you may inspire yourself).

Also note that the script may inform you about AC adapter (dis)connect
events via callback; the scripts tries to call each logged user
notify script ~/.acpi/bin/notify
Via this script, you may e.g. do a beep or whatever to make yourself
notified about the event.

Copy the "all" events mapping file to /etc/acpi/events/
and the action.sh script to /etc/acpi/

and re-start acpid. And, for starters put something like

#!/bin/sh
DATE=`date`
echo "$DATE: $*" >> $HOME/.acpi/notify.log

to your $HOME/.acpi/bin/notify, make it executable
and watch the result by

tail -f $HOME/.acpi/notify.log

...

Have fun.

I intend to make the notify script to send the event to a daemon
which would display an OSD message on X screen (as I've written before).
More will come the next year... :-)

Regards,

vencik

> its possible that its a acpi glitch. I've had the machine completely
> apart ( I have 1 gig total ram now, I replaced the deep inside 256
> chip with a 512 and have a 512 in the user slot) My wifi works good
> and
> I've got to recompile my kernel, so I've plenty to do while your on
> holiday! Enjoy your holiday!!!
> ~david
> On Dec 20, 2007 8:52 AM, Václav Krpec <vaclav.krpec_at_acision.com> wrote:
>> Maybe consider using something like imwheel to map the side-buttons
>> to actions (I don't know this SW, but it seems usefull).
>>
>> Regards,
>>
>> vencik
>>
>>
>>
>> aka.bugle wrote:
>>
>>> This is all great news vancik! a question about your implementation
>>> of the nvidia packoage.... Are you able to change from landscape to
>>> portrait "on the fly" in X Also how did you map the screen's
>>> pen-activated buttons? I will be sure to keep you informed on how
>>> your driver works.... THANKS! ~david
>>>
>>> On 12/20/07, Václav Krpec <vaclav.krpec_at_acision.com> wrote:
>>>> Hi again,
>>>>
>>>> Johannes wrote me that he hasn't maintain his TC1000 page for
>>>> quite long and so he will redirect it to my page.
>>>>
>>>> I've also based my work on Tomasz pages. Now, I'm working on
>>>> acpi; I've written a new actions handler script that is able
>>>> to run user notification script of currently logged users
>>>> (using their UID of course) and pass it parsed event info.
>>>>
>>>> On top of this, I'm writing a daemon in Perl that use X::Osd
>>>> module (xosd library Perl wrapper) that will provide OSD-like
>>>> notification messages to X display (messages like critical
>>>> battery status etc).
>>>> This work will also appear on my page as soon as it's ready.
>>>> It shouldn't take too long; it looks promissing even now.
>>>>
>>>> Next, I'll focus on the docking station.
>>>>
>>>> Regards,
>>>>
>>>> vancik
>>>>
>>>>
>>>> aka.bugle wrote:
>>>>> Hey does anyone have an archived copy of the original
>>>>> http://www.johanneswilm.org/ tc1000 page? I used it for my gentoo setup
>>>> and
>>>>> am sorta lost without his nicely formated scripts and configs. I like
>>>>> that there was some great continuity with Tomasz Sterna's
>>>>> http://staff.xiaoka.com/smoku/stuff/TC1000/gentoo-on-tc1000.html
>>>>> ~david
>>>>>
>>>>> On 11 Dec 2007 23:35:55 +0100, David Kuehling <dvdkhlng_at_gmx.de> wrote:
>>>>>>>>>>> "Václav" == Václav Krpec <vaclav.krpec_at_acision.com> writes:
>>>>>>> The driver is inspired by the tc1k-1.1zw1 driver, but rewritten
>>>>>>> completely and (if I may say that) much more effective and clean code.
>>>>>>> It still works on top of fpi2002 kernel module.
>>>>>>> So, if anyone is interrested, I'll share it. I can create a HOWTO and
>>>>>>> include the driver sources on my WEB pages as soon as I have some
>>>>>>> time, but please let me know if you are interrested, so that I won't
>>>>>>> do it in vain...
>>>>>> This would be very nice. I already started rewriting the stylistic pen
>>>>>> driver of ubuntu 7.10. If your work is based on modular Xorg build
>>>>>> system, it should work on ubuntu, too, saving me quite some work.
>>>>>>
>>>>>> BTW did you have a look at the fpi2002 shell script, which makes the
>>>>>> kernel module unnecessary? Get it from
>>>>>> http://user.cs.tu-berlin.de/~dvdkhlng/fpi2002-new.sh
>>>>>>
>>>>>> cheers,
>>>>>>
>>>>>> David
>>>>>> --
>>>>>> GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
>>>>>> Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Tc1000-linux mailing list
>>>>>> Tc1000-linux_at_handhelds.org
>>>>>> https://handhelds.org/mailman/listinfo/tc1000-linux
>>>>>>
>>>>>
>>>> This e-mail and any attachment is for authorised use by the intended
>>>> recipient(s) only. This email contains confidential information. It should
>>>> not be copied, disclosed to, retained or used by, any party other than the
>>>> intended recipient. Any unauthorised distribution, dissemination or copying
>>>> of this E-mail or its attachments, and/or any use of any information
>>>> contained in them, is strictly prohibited and may be illegal. If you are not
>>>> an intended recipient then please promptly delete this e-mail and any
>>>> attachment and all copies and inform the sender directly via email. Any
>>>> emails that you send to us may be monitored by systems or persons other than
>>>> the named communicant for the purposes of ascertaining whether the
>>>> communication complies with the law and company policies.
>>>>
>>>
>> --
>>
>> Václav Krpec
>> SW Engineer
>> ________________________________________
>>
>> Acision. Innovation. Assured.
>> www.acision.com
>>
>> Na Okraji 335/42
>> Praha 6
>> 162 00
>> Czech Republic
>> T: +420 225 399 176
>> M: +420 777 597 849
>> E: vaclav.krpec_at_acision.com
>>
>
>
>

-- 
Václav Krpec
SW Engineer
________________________________________
Acision. Innovation. Assured.
www.acision.com
Na Okraji 335/42
Praha 6
162 00
Czech Republic
T: +420 225 399 176
M: +420 777 597 849
E: vaclav.krpec_at_acision.com

# /etc/acpi/events/all
# ACPID configuration, it takes all
# events and passes them to /etc/acpi/action.sh for further
# processing.

event=.*
action=/etc/acpi/action.sh %e

Received on Thu Dec 20 2007 - 09:56:13 EST

This archive was generated by hypermail 2.2.0 : Thu Dec 20 2007 - 09:56:35 EST