Archive

Archive for the ‘ThinkPad’ Category

Reliable screen lock on sleep in Cinnamon

December 2nd, 2014 No comments

I’ve been having some problems with Cinnamon’s default lock screen cinnamon-screensaver not reliably being active after resume. Sometimes my screen was still visible for a blink of an eye, sometimes it didn’t even activate at all (often coinciding with hangs of Cinnamon, e.g. caused by FUSE).
In order to fix this I created a simple systemd service following the template in the Arch Wiki.

/etc/systemd/system/screenlock.service:
[Unit]
Description=Lock X session on sleep
Before=sleep.target

[Service]
User=username
Environment=DISPLAY=:0
ExecStart=/usr/bin/cinnamon-screensaver-command -l

[Install]
WantedBy=sleep.target

After enabling the service (systemctl enable screenlock.service) I got a reliable lock screen. It takes my notebook about an extra second to go to sleep now, but I don’t mind that.

GraphicsSwitcher 1.0.1.0

November 17th, 2009 2 comments

Just uploaded an improved version of GraphicsSwitcher.

Changes:
– When hovering over the tray icon it is displayed which graphics adapter has been activated
NOTE: Switches made through PowerManager are not detected (That’s on my todo list for the next days).

Download

Automatic graphics switching in Windows 7

November 12th, 2009 1 comment

A feature I liked very much was the automatic graphics switching depending on the used power source that the Catalyst Control Center offered on my T400 in Vista. For those not knowing what I am talking about: some Lenovo notebooks are equipped with two graphics chips – one saving energy and one having more performance. In Vista / Windows 7 a dynamic switching between these chips is possible.
One (constructional?) flaw the T400 has is that only this high performance adapter is connected to the digital video output. This makes it necessary to use the high performance card for displays connected via DVI. Still I want to use the energy saving adapter when I am on the road as it gives at least 25% longer runtimes on battery.
Bottom line: Automatic switching would be great in Win 7.

Some days ago I stumbled over an article (link below) describing how to use Lenovo’s PowerManager libraries to switch the active graphics adapter and decided to implement the automatic switching myself.
To avoid trouble with Lenovo my graphics switcher does not need the PowerManager libraries in its folder but rather loads them from the PM directory (provided PM is installed).

Download GraphicsSwitcher (executable and source)

Usage:

  • Extract the bin folder to a location of your choice
  • Run GfxSwitcher.exe
  • Automatic switching now occurs on power source changes
  • To quit GraphicsSwitcher right click the belonging tray icon (right in the task bar) and click Close

Warning: Please use GraphicsSwitcher carefully (save documents before power source changes) as the current version of Lenovo’s graphics drivers are not perfect yet and tend to crash sometimes (which happens as often when you switch using PowerManager).

Licence: MIT licence, see licence.txt in the downloaded archive.

Source (graphics switching using PowerManager libraries): http://zabadab.eu/switchablegraphics/