pbbuttons - issues with lidclose->display off options (backlight remains off)

2006-09-20 Thread Eddy Petrişor

Hello,

I am not sure if the reason behind this problem is pbbuttonsd,
although I am fairly sure, I want to have a confirmation (this happens
from time to time on my laptop).

I have configured pbuttonsd to just turn off the display when on AC
and the lid is closed. I found that, sometimes, when opening the lid
again, the backlight will not be turned back on (I can see the locking
screen of KDE); if I try o swith to a text console, the backlight is
turned back on for a split second, I can see the display properly,
then is back to off. Switching back and forth between the X console
and a text console does not fix the issue, but the
light-on-for-a-split-second thing is present.
Also I have found that I can work arund the issue if I put the laptop
to sleep and wake it up. (But even this work around doesn't always
work for me since I am experincing lock-ups before sleep - nobody has
an idea why).

Does anybody else has this issues? Can someone confirm this? How can I fix it?

Help would be appreciated.

8<
$ LANG=C apt-cache policy pbbuttonsd
pbbuttonsd:
 Installed: 0.7.5-2
 Candidate: 0.7.5-2
 Version table:
*** 0.7.5-2 0
   900 http://ftp.ro.debian.org unstable/main Packages
   900 http://snapshot.debian.net unstable/main Packages
   100 /var/lib/dpkg/status
8<
$ uname -a
Linux merci 2.6.18-rc5-merci #1 Wed Sep 13 23:44:36 EEST 2006 ppc GNU/Linux

compiled from Linus' git version as it was on 2006-09-02
00:35:01.0 +0300
8<
$ cat /etc/pbbuttonsd.conf
# Configuration file for pbbuttonsd >= version 0.5
# for options see man pbbuttonsd.conf

[SYSTEM]
#userallowed   = "" ; user who is allowed to use IPC
autorescan= yes ; automatic rescan of event devices
CmdTimeout= 8   ; timeout in seconds for
launched scripts, etc.

[MODULE PMAC]
dev_PMU   = "/dev/pmu"
dev_ADB   = "/dev/adb"
TPModeUpKey   = 225 + alt
TPModeDownKey = 224 + alt
TPMode= drag; 'notap', 'tap', 'drag' or 'lock'
KBDMode   = fkeysfirst  ; 'disabled', 'fkeyslast' or
'fkeysfirst'
Batlog= log ; 'none', 'cycle' or 'log'
NoTapTyping   = yes ; switch trackpad to
'notap-mode' while typing

[MODULE POWERSAVE]
onAC_Policy   = performance ; 'nochange', 'powersave',
'custom' or 'performance'
onAC_TimerAction  = none; 'none', 'suspend-to-ram',
'suspend-to-disk', 'blankscreen' or 'shutdown'
#onAC_CoverAction  = suspend-to-ram ; see TimerAction for possible values
onAC_CoverAction  = blankscreen ; see TimerAction for possible values
onAC_KeyAction= suspend-to-ram  ; Action (see TimerAction) for
the sleepkey
onAC_SuspendTime  = 36000
onAC_DimTime  = 0
onBattery_Policy  = powersave   ; 'nochange', 'powersave',
'custom' or 'performance'
onBattery_TimerAction = suspend-to-ram  ; 'none', 'suspend-to-ram',
'suspend-to-disk', 'blankscreen' or 'shutdown'
onBattery_CoverAction = suspend-to-ram  ; see TimerAction for possible values
onBattery_KeyAction   = suspend-to-ram  ; Action (see TimerAction) for
the sleepkey
onBattery_SuspendTime = 3000
#onBattery_DimTime = 1200
onBattery_DimTime = 0
SleepKey  = 116
SleepKeyDelay = 0   ; values > 0 may be dangerous,
if the power key is used to trigger sleep
BWL_first = 22  ; first battery warnlevel,
time in minutes
BWL_second= 10  ; second battery warnlevel,
time in minutes
BWL_last  = 5   ; last battery warnlevel, time
in minutes
Script_PMCS   = "/etc/power/pmcs-pbbuttonsd %s %s %s"
EmergencyAction   = sleep   ; action, if battery is critically low
HeartbeatBeep = yes ; beep, if nothing else showed
that the computer lives
CPULoad_sleeplock = yes
CPULoad_min   = 5   ; value in percent
CPULoad_period= 20  ; time in seconds
NETLoad_sleeplock = yes
NETLoad_min   = 4096; traffic in Bytes/s
NETLoad_period= 20  ; time in seconds
NETLoad_device= "eth0 tun0"
IBAM_DataDir  = "/var/lib/ibam"

[MODULE DISPLAY]
LCD_Brightness= 15  ; initial LCD brightness level
LCD_FadingSpeed   = 5   ; 0 = no smooth fading
LCD_AutoAdjust= yes ; only on Aluminum PowerBooks
LCD_IllumUpKey= 225
LCD_IllumDownKey  = 224
LCD_Threshold = 94  ; ambient light threshold in
percent for backlight autoadj.
LCD_AutoAdjMin_Bat= 2   ; autoadjustment range parameters
LCD_AutoAdjMax_Bat= 7
LCD_AutoAdjMin_AC = 1
LCD_AutoAdjMax_AC = 15
KBD_Brightness= 0   ; initial keyboard illumination level
KBD_OnBrightness  = 5   ; initial le

Re: pbbuttons - issues with lidclose->display off options (backlight remains off)

2006-09-20 Thread Børge Holen
On Wednesday 20 September 2006 13:52, Eddy Petrişor wrote:
> Hello,
>
> I am not sure if the reason behind this problem is pbbuttonsd,
> although I am fairly sure, I want to have a confirmation (this happens
> from time to time on my laptop).
>
> I have configured pbuttonsd to just turn off the display when on AC
> and the lid is closed. I found that, sometimes, when opening the lid
> again, the backlight will not be turned back on (I can see the locking
> screen of KDE); if I try o swith to a text console, the backlight is
> turned back on for a split second, I can see the display properly,
> then is back to off. Switching back and forth between the X console
> and a text console does not fix the issue, but the
> light-on-for-a-split-second thing is present.
> Also I have found that I can work arund the issue if I put the laptop
> to sleep and wake it up. (But even this work around doesn't always
> work for me since I am experincing lock-ups before sleep - nobody has
> an idea why?
>
> Does anybody else has this issues? Can someone confirm this? How can I fix
> it?

Not exactly that issue, but the the "dim down when not active" works this way 
with my pb. however if you close to blind, if not in bright light (or know 
exactly what to write (witch is /etc/init.d/pbbuttonsd restart) at console) 
<- no use continuing the sentence since my point is written.
That fixes it for the time being. Comment the corresponding line in 
pbbuttons.conf to be rid of the problem.
On the other hand, whats wrong? dunno. maby it stops taking the adb kbd or 
usb/bt mouse as input/movement (witch happened once'n while with my x86 
compute).

Now if you do not set the "dim console to" option, you can switch to console 
and that part should work as normal. 
UseFBBlank= yes/no  <- this one I think.

>
> Help would be appreciated.
>
> 8<
> $ LANG=C apt-cache policy pbbuttonsd
> pbbuttonsd:
>   Installed: 0.7.5-2
>   Candidate: 0.7.5-2
>   Version table:
>  *** 0.7.5-2 0
> 900 http://ftp.ro.debian.org unstable/main Packages
> 900 http://snapshot.debian.net unstable/main Packages
> 100 /var/lib/dpkg/status
> 8<
> $ uname -a
> Linux merci 2.6.18-rc5-merci #1 Wed Sep 13 23:44:36 EEST 2006 ppc GNU/Linux
>
> compiled from Linus' git version as it was on 2006-09-02
> 00:35:01.0 +0300
> 8<
> $ cat /etc/pbbuttonsd.conf
> # Configuration file for pbbuttonsd >= version 0.5
> # for options see man pbbuttonsd.conf
>
> [SYSTEM]
> #userallowed   = "" ; user who is allowed to use IPC
> autorescan= yes ; automatic rescan of event devices
> CmdTimeout= 8   ; timeout in seconds for
> launched scripts, etc.
>
> [MODULE PMAC]
> dev_PMU   = "/dev/pmu"
> dev_ADB   = "/dev/adb"
> TPModeUpKey   = 225 + alt
> TPModeDownKey = 224 + alt
> TPMode= drag; 'notap', 'tap', 'drag' or 'lock'
> KBDMode   = fkeysfirst  ; 'disabled', 'fkeyslast' or
> 'fkeysfirst'
> Batlog= log ; 'none', 'cycle' or 'log'
> NoTapTyping   = yes ; switch trackpad to
> 'notap-mode' while typing
>
> [MODULE POWERSAVE]
> onAC_Policy   = performance ; 'nochange', 'powersave',
> 'custom' or 'performance'
> onAC_TimerAction  = none; 'none', 'suspend-to-ram',
> 'suspend-to-disk', 'blankscreen' or 'shutdown'
> #onAC_CoverAction  = suspend-to-ram ; see TimerAction for possible
> values onAC_CoverAction  = blankscreen ; see TimerAction for
> possible values onAC_KeyAction= suspend-to-ram  ; Action (see
> TimerAction) for the sleepkey
> onAC_SuspendTime  = 36000
> onAC_DimTime  = 0
> onBattery_Policy  = powersave   ; 'nochange', 'powersave',
> 'custom' or 'performance'
> onBattery_TimerAction = suspend-to-ram  ; 'none', 'suspend-to-ram',
> 'suspend-to-disk', 'blankscreen' or 'shutdown'
> onBattery_CoverAction = suspend-to-ram  ; see TimerAction for possible
> values onBattery_KeyAction   = suspend-to-ram  ; Action (see TimerAction)
> for the sleepkey
> onBattery_SuspendTime = 3000
> #onBattery_DimTime = 1200
> onBattery_DimTime = 0
> SleepKey  = 116
> SleepKeyDelay = 0   ; values > 0 may be dangerous,
> if the power key is used to trigger sleep
> BWL_first = 22  ; first battery warnlevel,
> time in minutes
> BWL_second= 10  ; second battery warnlevel,
> time in minutes
> BWL_last  = 5   ; last battery warnlevel, time
> in minutes
> Script_PMCS   = "/etc/power/pmcs-pbbuttonsd %s %s %s"
> EmergencyAction   = sleep   ; action, if battery is critically
> low HeartbeatBeep = yes ; beep, if nothing else showed
> that the computer lives
> CPULoad_sleeplock = yes
> CPULoad_min   

Re: pbbuttons - issues with lidclose->display off options (backlight remains off)

2006-09-24 Thread Matthias Grimm
On Wed, 20 Sep 2006 14:52:20 +0300
"Eddy Petrişor" <[EMAIL PROTECTED]> wrote:

> I have configured pbuttonsd to just turn off the display when on AC
> and the lid is closed. I found that, sometimes, when opening the lid
> again, the backlight will not be turned back on (I can see the locking
> screen of KDE); if I try o swith to a text console, the backlight is
> turned back on for a split second, I can see the display properly,
> then is back to off. Switching back and forth between the X console
> and a text console does not fix the issue, but the
> light-on-for-a-split-second thing is present.

> [MODULE DISPLAY]
> UseFBBlank= yes

Try to set this to "no". Similar problems reported to me could be
solved with this. I think recent kernel versions don't need this option
any longer because the backlight is mostly controlled by the framebuffer
driver and switching the backlight off will automatically lead to a
switched off framebuffer display. 

Please tell me your result.

  Best Regards
Matthias


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttons - issues with lidclose->display off options (backlight remains off)

2006-09-28 Thread Eddy Petrișor
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matthias Grimm wrote:
> On Wed, 20 Sep 2006 14:52:20 +0300
> "Eddy Petrişor" <[EMAIL PROTECTED]> wrote:
> 
>> I have configured pbuttonsd to just turn off the display when on AC
>> and the lid is closed. I found that, sometimes, when opening the lid
>> again, the backlight will not be turned back on (I can see the locking
>> screen of KDE); if I try o swith to a text console, the backlight is
>> turned back on for a split second, I can see the display properly,
>> then is back to off. Switching back and forth between the X console
>> and a text console does not fix the issue, but the
>> light-on-for-a-split-second thing is present.
> 
>> [MODULE DISPLAY]
>> UseFBBlank= yes
> 
> Try to set this to "no". Similar problems reported to me could be
> solved with this. I think recent kernel versions don't need this option
> any longer because the backlight is mostly controlled by the framebuffer
> driver and switching the backlight off will automatically lead to a
> switched off framebuffer display. 
> 
> Please tell me your result.

I didn't had issues since this change. Thanks all.

- --
Regards,
EddyP
=
"Imagination is more important than knowledge" A.Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFHAzRY8Chqv3NRNoRAkSxAJ0bXnhK8aqwRTtG+Y47w0yK15O4wQCcCmHe
rvHInuLpP9Lbaw6ELjb4TfQ=
=DbQ7
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]