As of 2016-02-26, there will be no more posts for this blog. s/blog/pba/
Showing posts with label power management. Show all posts

This morning, I noticed the system temperature was oddly low, only just above 40C. I didnt mind at first, but then I felt it seemed to run slower than before, which might just from confusion after I checked the frequencies from /proc/cpuinfo.

I had not looked at file for years, and I saw the frequency was fixed at 1833MHz and 1000MHz, two cores, respectively. So, I tried the ultimate fix, turning it off and on again, didnt work. I began to wonder if anything got updated recently, not the kernel nor any system/hardware stuff that I could remember.

At this point, I laughed before I knew there must be a setting wrong and for years, I had not realized that. So I went back to the power management in kernel configuration and found that I might have been using the wrong governor since 2012-08-27 as kernel 3.4 recommended ondemand governor according to ArchWiki.

That was 3.5 years ago.

I have left GNOME for months. Sometimes, you still miss Desktop Environment like GNOME or KDE. They handle many things behind scenes that you would never ever notice.

(Photo credit on the right: EDC 2: OFF or Finally doing what my mother told me by Theorris)

I use Enlightment 0.16 right now, I have dealt with many things, such as volume control, tray, hotkeys, compose key, etc.

The recent solved issue is the backlight of LCD, actually, this is second time I solved it. There is a command called xset. You can use it to blank screen but nothing about power management:
xset dpms force off

The backlight of LCD is still on, I mis-remember the correct command. The correct one should be vbetool.
vbetool dpms off
vbetool dpms on

This command needs permission, and it won't automatically resume when you move mouse or type a key. xset does, but it doesn't turn off backlight.

You should modify an ACPI action script, which detects laptop's lid on or off. In my case, which is /etc/acpi/actions/ati-powermode.sh (I used proprietary driver). There is a piece of code:
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]; then
lid_closed=1
echo "Lid Closed"
else
lid_closed=0
echo "Lid Open"
fi
Make that be
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]; then
lid_closed=1
echo "Lid Closed"
vbetool dpms off
else
lid_closed=0
echo "Lid Open"
vbetool dpms on
fi

When this file gets updated, it revert to original. I forgot the correct command, I seached again for the right one. Now, that wont be happened again since I wrote this.

Lastly, a short clip. I intended to find a very short video about lights going off. I did found one, and more than that. :)