LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-26-2012, 01:22 AM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Rep: Reputation: 62
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 07-26-2012, 01:46 AM   #2
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
also where is global xmodmap file?

I'd like to add
Quote:
keycode 120 = XF86MonBrightnessDown
 
Old 07-26-2012, 01:52 AM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
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
 
Old 07-26-2012, 03:41 PM   #4
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware 14.0 64-bit
Posts: 228

Rep: Reputation: 41
Maybe you can run these commands and post the output?

xfce4-power-manager --restart --dump
xfce4-power-manager --debug
 
Old 07-26-2012, 09:47 PM   #5
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
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.
 
Old 07-26-2012, 11:02 PM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by Old_Fogie View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Current State Of Radeon Power Management LXer Syndicated Linux News 0 12-08-2011 03:40 PM
Power Management not working on embedded MIPS when using /sys/power/state RichardS Programming 1 01-21-2011 07:18 AM
current drain gain check for power management Indhu Durai Linux - Laptop and Netbook 0 04-03-2006 11:37 PM
Power management util's for Fluxbox & Slack liquidfaction Linux - Laptop and Netbook 0 08-23-2005 09:50 PM
Display Power Management problem on Slack 10! stef52 Slackware 2 07-01-2004 04:30 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration