Archive for the ‘linux’ Category

Lenovo T460(s) suspend problem while on battery

March 26, 2016

In this blog post I want to summarize my investigations about problems concerning suspend with my lenovo t460 notebook. (Note: This problem seems to also exists with the lenovo T460s notebooks. More information about debian on the t460 can be found here.)

(The informations here are verified with a debian testing installation with kernel version 4.4. The problems is reported by people using other distributions too.)

What is the problem and how can you reproduce it?

  • If the device is on the AC, closing the lid causes the notebook to suspend. This works perfectly – in other words: The notebook wakes up after opening the lid and is usable.
  • If the notebook is on battery, closing the lid causes the notebook to freeze. In other words: If I open the lid again, everything is frozen. Not only the UI but I’m also not able to change to TTY1, 2, ..
  • Interestingly enough, manually suspending with systemctl suspend works without a glitch.

I reported this problem on the debian forums and the thinkpad subreddit.

There is an entry in the kernel bug tracker Bug 113551 – intel_pstate=no_hwp else Thinkpad T460s freezes on lid close on battery power. The bug entry indicates that the problem is also to be found kernel versions up to 4.5.0-rc6. It also looks like the source of the problem is found, patches are being tested. I also filed a debian bug entry for this problem as was suggested to my when asking in the debian IRC channel.

So it seems that newer kernel versions won’t have this problem. There is a workaround till this happens. You can add the intel_pstate=no_hwp parameter to the GRUB_CMDLINE_LINUX_DEFAULT section of the /etc/default/grub file. Attention: Don’t forget to run update-grub after every change to this file. Also: This may cause your notebook to use more power – the battery may empty itself faster.

I will try to update this blog post after more information, changes in the status of this problem occur. I maybe even try to patch the debian kernel with a patch and test if this helps to fix the suspend problem.

Update 2016-04-28: After upgrading to the Debian 4.5.1-1 (2016-04-14) x86_64 GNU/Linux kernel version, the suspend problem is gone. I can close the lid while being on batteries and the notebook is going into suspend and leaves it correctly.

Lenovo T460 and Debian Gnu/Linux

March 2, 2016

Today I got my new notebook. A Lenovo T460 Thinkpad. In this blogpost I want do document my problems or absence of problems with installing and using Debian Gnu/Linux. I paid around 930 Euro via the u:book program (where you can get notebooks cheaper if you are a student/pupil or working at a university). The version I bought included 8GB Ram and 256 GB SSD.

tldr: I’m writing this under Debian Testing (stretch) with wireless activated and working audio. Also the screen is working with the expected 1920×1080

More detailed information about the hardware (lspci). You can also look at the the output of lspci -v

00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07)
00:14.0 USB controller: Intel Corporation Device 9d2f (rev 21)
00:14.2 Signal processing controller: Intel Corporation Device 9d31 (rev 21)
00:16.0 Communication controller: Intel Corporation Device 9d3a (rev 21)
00:17.0 SATA controller: Intel Corporation Device 9d03 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.2 PCI bridge: Intel Corporation Device 9d12 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d48 (rev 21)
00:1f.2 Memory controller: Intel Corporation Device 9d21 (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d70 (rev 21)
00:1f.4 SMBus: Intel Corporation Device 9d23 (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection I219-V (rev 21)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 522a (rev 01)
04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)


First I tried to use the Debian testing netinstall image. But at that time (2.3.2016) the installer was broken because of some dependency problem between systemd and the ifupdown package. (I suppose this bug ticket is concerned with the problem.) My motivation to use the testing version was to have the better hardware support which was important for me because of the novelty of the T460. My fears now where that the Debian Stable Version (at this time: Jessie) would not be able to install itself on the notebook. But interestingly enough: It did work. The sound, wireless, touchpad and screen had some problems. But this was no problem, because after the first reboot I edited the /etc/apt/sources.list and replaced the jessie keyword with testing. After that used apt-get upgrade and apt-get dist-upgrade upgraded me to the testing version.


How to easily merge PDF files with linux

April 30, 2012

There is an easy way to merge two or more PDF files. You can use the free software called Pdftk. You can get it via the package system of your preferred linux distribution or the homepage of the project.

Here is an example for merging threepdf files

pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf

You can find more examples on the projects website.

Searching a file with given content recursively in unix

July 30, 2010

Some time ago I had the problem to search files with a given string in lots and lots of directories with lots and lots of files. Finally I used this command to show me every file in a given directory (plus sub-directories) which contains the search-string.

find . -name "*.php" -print | xargs grep "searchstring"

Means: Search for all php files which contain the string “searchstring”.

Sluggish text input in kde

July 7, 2010

I use kmail a lot and kile sometimes. Something which bothered me a lot was the sluggish text input of these two kde programs. Characters were shown with a notable delay which made writing painfully.

But  there is a workaround which solved the problem for me.

kmail –graphicssystem raster

Start the program from the console with the additional option –graphicssystem raster

More on this topic can be found in this bug entry

Yet another netbook distribution?

May 30, 2010

Maybe you have heard about MeeGo (the former moblin project). It is a project undertaken by intel and nokia to create a mobile linux distribution aimed at netbook devices (and smartphones in the future).

Now they released their 1.0 version (which is not recommended for use in production systems). Ars Technica has created an article with a lot of screenshots and an nice overview of the mobile platform. If you are interested in this subject, it is a nice read!

Spreading Linux is a Crime?

March 27, 2009

Spreading Linux is a crime according to US teacher

A teacher has thrown a student into detention and threatened to call the police for using Linux in her classroom
The teacher spotted one of her students giving a demonstration of the HeliOS distro to other students. In a somewhat over-the-top reaction, she confiscated the CDs, put the student on detention and whipped off a letter to the HeliOS Project threatening to report it to the police for distributing illegal software.
I am sure you strongly believe in what you are doing but I cannot either support your efforts or allow them to happen in my classroom,” writes the teacher, identified only as Karen.

“At this point, I am not sure what you are doing is legal. No software is free and spreading that misconception is harmful. I will research this as time allows and I want to assure you, if you are doing anything illegal, I will pursue charges as the law allows.

“I along with many others tried Linux during college and I assure you, the claims you make are grossly over-stated and hinge on falsehoods. I admire your attempts in getting computers in the hands of disadvantaged people but putting Linux on these machines is holding our kids back,” she writes.

Read more to get the answer of the linux distribution which is being accused to be “illegal”.

Crazy what some people are thinking. Maybe it’s not possible for them to believe that there are things which are free as in beer AND free as in speech.

I’m Linux?

March 24, 2009

Linux doesn’t have much in the way of advertising. While Apple’s wonderful “I’m a Mac” TV ad campaign is famous, and Microsoft’s Bill Gates/Jerry Seinfeld ads are infamous, Linux really doesn’t have anything. Now, the Linux Foundation is trying to change that with it’s “We’re Linux” Video Contest.   [more]

Three videos which I find quite nice.

Debian GNU/Linux Lenny (5.0) released

February 15, 2009

The Debian Project is pleased to announce the official release of Debian GNU/Linux version 5.0 (codenamed Lenny) after 22 months of constant development. Debian GNU/Linux is a free operating system which supports a total of twelve processor architectures and includes the KDE, GNOME, Xfce, and LXDE desktop environments. It also features compatibility with the FHS v2.3 and software developed for version 3.2 of the LSB.

You can read more on their release information page. You can download the DVDs and CDs via http and bittorrent.

I’m very happy to see the new release because I’m a vivid fan and user of Debian GNU/Linux. It’s my default distribution on my desktop and server machine. (Even when I recommend Ubuntu for unexperienced users).

You can help the project with donations or support them directly with their work.

Videos from DebConf08

August 28, 2008

Debian Conference is the annual Debian developers meeting, an event filled with coding parties, discussions and workshops – all of them highly technical in nature. It will be held in Mar del Plata, Argentina, from August 10th to August 16th, 2008.

Previous Debian Conferences have featured speakers from around the world. They have also been extremely beneficial for developing key Debian software components, including the new Debian Installer, and for improving Debian’s internationalization.

Videos about this event can be found through an RSS feed providing you with ogg video files.