LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack current - power management (https://www.linuxquestions.org/questions/slackware-14/slack-current-power-management-4175418712/)

Old_Fogie 07-26-2012 01:22 AM

Slack current - power management
 
I've only been testing XFCE so far, so perhaps it is due to that.

But, my suspend and hibernate buttons are not recognized until I suspend in XFCE once with logout button, then XFCE let's me use my buttons on the keyboard to suspend/hibernate.

I'm working around this with the /etc/acpi powerbutton tweak someone else helped me with for KDE.

Secondly and more importantly tho, is I want to

1.) completely turn off usb autosuspend.

running in my rc.local
Quote:

for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 0 > $i; done
for i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done
this helps, but when I suspend, the USB devices are all off. So I have to re-run that. I've put a file in /etc/pm/sleep.d and it's not being honored by my system like it would in 13.37

2. I want to completely disable turning off my hard drive with power management. Again, I made a /etc/pm/sleep.d file with

Quote:

case "$1" in
thaw|resume)
hdparm -B 254 -S 0 /dev/sda
;;
*) exit $NA
;;
esac
and that too is not being honored.

I've also gone so far as to test/fix by deleting /usr/lib/pm/suspend.d/{harddrive,laptop-mode} but no luck.

Any other thought greatly welcome.

Old_Fogie 07-26-2012 01:46 AM

also where is global xmodmap file?

I'd like to add
Quote:

keycode 120 = XF86MonBrightnessDown

Old_Fogie 07-26-2012 01:52 AM

Just another update, on clean boot up of the laptop, KDE does see my battery, my battery buttons without issue (well so long as I use the xmodmap there). XFCE does not. I have to (from a cold boot), log into xfce, issue suspend, then resume, now I can see my battery and my buttons. So I guess I'll stick with KDE on current like I am in 13.37 . XFCE power manager just seems to have issues with my hardware :(

jostber 07-26-2012 03:41 PM

Maybe you can run these commands and post the output?

xfce4-power-manager --restart --dump
xfce4-power-manager --debug

Old_Fogie 07-26-2012 09:47 PM

xfce4-power-manager --restart --dump

outputs nothing to the terminal

and

xfce4-power-manager --debug

says: Xfce Power Manager: Another power manager is already running

ps ax |grep pow states:

/usr/libexec/upowerd and xfce4-power-manager are running.

mRgOBLIN 07-26-2012 11:02 PM

Quote:

Originally Posted by Old_Fogie (Post 4738253)
also where is global xmodmap file?

I'd like to add

Code:

/etc/X11/xinit/Xmodmap
(It has an uppercase X) You can also just use ~/.Xmodmap


All times are GMT -5. The time now is 06:52 AM.