Archive for the ‘linux’ Category

HP Elitebook 840 G4 and Linux Mint 18.1

April 10, 2017

(work in progress)

A friend of mine got a new notebook the HP Elitebook 840 G4 with Windows 10.  In this blogpost I want to document whats working and what not.

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 Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d11 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Device 9d13 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Device 9d18 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
02:00.0 Network controller: Intel Corporation Device 24fd (rev 78)
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804

Installation

I installed Linux Mint 18.1. The only non standard thing i had to do, was to shrink the Windows 10 partition with gnuparted. The installer had no option for that or I did not found it. Other than that, the installation went without a hitch and I was able to start both Windows 10 and Linux mint afterwards.

The kernel which is installed is linux-image-4.4.0-72-generic.

Configuration

As the display of the notebook has 2560×1440 pixel, the user interface was very small and difficult to use with both the mate and cinnamon flavor. Cinnamon has a configuration (Settings-General) where you can scale the interface for high dpi displays as that one. With the option “double” the cinnamon user interface is quite nice and usable.

  • Sound works out of the box
  • Special keys like dimming the display or muting work

Problems

Wifi

As of now, the wifi is not working. There seems to be drivers missing. Output of lshw

*-network UNCLAIMED
description: Network controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: 78
width: 64 bits
clock: 33MHz
capabilities: cap_list
configuration: latency=0
resources: memory:d8a00000-d8a01fff

While lspci gives me

Network controller: Intel Corporation Device 24fd (rev 78)

Misc

  • The clock is changing in weird ways when booting into windows and linux.
  • Standby does not seem to work.

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)

Installation

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.

(more…)

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 https://bugs.launchpad.net/ubuntu/+source/kile/+bug/361843.

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.