NVClock crashes in Acpi.d events because no HOME environment variable has been set. See src/backend/config.c line 273. As a workaround I have this:
#!/bin/bash HOME=/root nvclock -S 5 I also had to copy the ~/.nvclock directory to /root/.nvclock. Now I've got it working perfectly. When I unplug my laptop, the brightness goes down :). 2008/10/22 seek <[EMAIL PROTECTED]> > [EMAIL PROTECTED]:~$ cat /etc/default/acpi-support | grep -B2 > ENABLE_LAPTOP_MODE > # Switch to laptop-mode on battery power - off by default as it causes odd > # hangs on some machines > ENABLE_LAPTOP_MODE=true > > [EMAIL PROTECTED]:~$ cat /etc/acpi/battery.d/90-brightness.sh > #! /bin/bash > > /bin/nvclock -S 5 > > [EMAIL PROTECTED]:~$ cat /etc/acpi/ac.d/90-brightness.sh > #! /bin/bash > > /bin/nvclock -S 100 > > --- > > this scripts running, but i have following in the log > [EMAIL PROTECTED]:~$ dmesg | tail -5 > [ 369.915130] nvclock[10871]: segfault at 00000000 eip b7de3283 esp > bfe2f11c error 4 > [ 400.605804] nvclock[11305]: segfault at 00000000 eip b7d36283 esp > bfe2410c error 4 > [ 403.662667] nvclock[11365]: segfault at 00000000 eip b7df5283 esp > bf8f0bdc error 4 > [ 419.213568] nvclock[11905]: segfault at 00000000 eip b7d47283 esp > bfed99cc error 4 > [ 428.282101] nvclock[12223]: segfault at 00000000 eip b7d9c283 esp > bf8d13bc error 4 > > why that? it is running as normal user and root > > -- > No Screen Backlight Control; Sony Vaio with nvidia 8 series graphics > https://bugs.launchpad.net/bugs/95444 > You received this bug notification because you are a direct subscriber > of the bug. > -- No Screen Backlight Control; Sony Vaio with nvidia 8 series graphics https://bugs.launchpad.net/bugs/95444 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
