<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dinyar</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dinyar"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Dinyar"/>
	<updated>2026-05-25T14:01:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Debian_Sid_(October_2008)_on_a_ThinkPad_X200&amp;diff=42537</id>
		<title>Installing Debian Sid (October 2008) on a ThinkPad X200</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Debian_Sid_(October_2008)_on_a_ThinkPad_X200&amp;diff=42537"/>
		<updated>2009-04-08T13:28:42Z</updated>

		<summary type="html">&lt;p&gt;Dinyar: Added information concerning non-us keyboards.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Amazing machine: light, quiet, large battery life, ideal for travels, great value for money compared to X200T and X300.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating installation device ==&lt;br /&gt;
&lt;br /&gt;
The X200 has no cd/dvd but can boot from USB. On the X200 BIOS settings, the USB disk boot option needed to be raised to be used first. Using F1 at boot gives access to the BIOS.&lt;br /&gt;
&lt;br /&gt;
I created an USB bootable iso from another linux installation.&lt;br /&gt;
I had an usb stick with a FAT32 partition on /dev/sdc1. I dowloaded the boot and iso file and installed the image&lt;br /&gt;
using:&lt;br /&gt;
&lt;br /&gt;
  wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz&lt;br /&gt;
  wget http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso&lt;br /&gt;
  zcat boot.img.gz &amp;gt;/dev/sdc1&lt;br /&gt;
  mkdir /mnt/sdc1&lt;br /&gt;
  mount /dev/sdc1 /mnt/sdc1&lt;br /&gt;
  cp debian-testing-i386-netinst.iso /mnt/sdc1&lt;br /&gt;
&lt;br /&gt;
The boot stick will use the network to install the package but a more complete ISO image can be dowloaded.&lt;br /&gt;
&lt;br /&gt;
The wifi will not work (see [[Installing_Debian_on_an_X200]]) but the Ethernet card will. In theory it should be possible build custom Debian Live USB stick, using the latest package and install from there, I didn't manage so far.&lt;br /&gt;
&lt;br /&gt;
== Sid installation ==&lt;br /&gt;
&lt;br /&gt;
To install sid use the expert installation support and choose unstable for the repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Backup hard drive data ==&lt;br /&gt;
&lt;br /&gt;
In order to save the hard drive content, I created complete hard drive image on another hard disk. During the installation procedure I activated another shell with CTRL-ALT-F3, mounted an external HD (/dev/sdb1) and copied the image with:&lt;br /&gt;
&lt;br /&gt;
  mkdir /mnt/sdb1&lt;br /&gt;
  mount /dev/sdb1 /mnt/sdb1/&lt;br /&gt;
  dd if=/dev/sda of=/mnt/sdb1/sda-image&lt;br /&gt;
&lt;br /&gt;
In principle partimage is better option but the installation image does not have it. Also gzipping the partition on the fly would have bin better, but the gzip or bzip2 were not present. Using a custom Debian Live installation image would solve the problem.&lt;br /&gt;
&lt;br /&gt;
== Kernel ==&lt;br /&gt;
&lt;br /&gt;
Some kernel options here for /boot/grub/menu.lst:&lt;br /&gt;
  &lt;br /&gt;
  # kopt=root=/dev/sda1 ro acpi_sleep=s3_bios vga=0x0368 video=vesafb&lt;br /&gt;
&lt;br /&gt;
Update the real items using&lt;br /&gt;
  &lt;br /&gt;
  update-grub&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
Intel driver on sid does not allow suspend to ram. Vesa driver is not that slow, but does not enable the VGA output.&lt;br /&gt;
&lt;br /&gt;
A solution is use the experimental package, but xorg needs a couple of ServerFlag option to avoid&lt;br /&gt;
strange behavior with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
This is a simple xorg.conf:&lt;br /&gt;
&lt;br /&gt;
  $ cat /etc/X11/xorg.conf &lt;br /&gt;
  Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Generic Keyboard&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;kbd&amp;quot;&lt;br /&gt;
        Option          &amp;quot;XkbRules&amp;quot;      &amp;quot;xorg&amp;quot;&lt;br /&gt;
        Option          &amp;quot;XkbModel&amp;quot;      &amp;quot;pc104&amp;quot;&lt;br /&gt;
        Option          &amp;quot;XkbLayout&amp;quot;     &amp;quot;us,us(intl)&amp;quot;&lt;br /&gt;
        Option          &amp;quot;XkbOptions&amp;quot;    &amp;quot;compose(lwin),compose(rwin),grp:shifts_toggle,grp_led:scroll&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;Configured Mouse&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Option      &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Device&amp;quot; &amp;quot;/dev/input/mouse0&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Protocol&amp;quot; &amp;quot;ImPS/2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheel&amp;quot; &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelButton&amp;quot; &amp;quot;2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelTimeout&amp;quot; &amp;quot;250&amp;quot;&lt;br /&gt;
        Option      &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
        Option      &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
        Monitor         &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
        Defaultdepth    24&lt;br /&gt;
        SubSection &amp;quot;Display&amp;quot;&lt;br /&gt;
                Modes           &amp;quot;1280x800&amp;quot;&lt;br /&gt;
  #             Virtual    2048 1024&lt;br /&gt;
        EndSubSection&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
        DisplaySize     231 233.5 #fake smaller dpi&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;HDMI-1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Ignore&amp;quot; &amp;quot;True&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;HDMI-2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Ignore&amp;quot; &amp;quot;True&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;intel&amp;quot;&lt;br /&gt;
        Option          &amp;quot;monitor-HDMI-1&amp;quot; &amp;quot;HDMI-1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;monitor-HDMI-2&amp;quot; &amp;quot;HDMI-2&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
  Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
    Option &amp;quot;AllowEmptyInput&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
    Option &amp;quot;AutoAddDevices&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
    Option &amp;quot;AIGLX&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
&lt;br /&gt;
== Fonts ==&lt;br /&gt;
&lt;br /&gt;
Default fonts are a bit ugly. Things get better by creating some symbolic link:&lt;br /&gt;
&lt;br /&gt;
  cd /etc/fonts/conf.d&lt;br /&gt;
  ln -s ../conf.avail/10-autohint.conf&lt;br /&gt;
  ln -s ../conf.avail/10-sub-pixel-rgb.conf&lt;br /&gt;
  ln -s ../conf.avail/70-no-bitmaps.conf&lt;br /&gt;
&lt;br /&gt;
For GTK and Firefox&lt;br /&gt;
&lt;br /&gt;
Fonts size are too large. Solution:&lt;br /&gt;
  $cat ~/.gtkrc-2.0&lt;br /&gt;
  # -- THEME AUTO-WRITTEN DO NOT EDIT&lt;br /&gt;
  include &amp;quot;/usr/share/themes/Industrial/gtk-2.0/gtkrc&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  include &amp;quot;/home/rdemaria/.gtkrc-2.0.mine&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  # -- THEME AUTO-WRITTEN DO NOT EDIT&lt;br /&gt;
&lt;br /&gt;
  $cat ~/.gtkrc-2.0.mine&lt;br /&gt;
  gtk-font-name = &amp;quot;Sans 8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Bold font are also ugly on xvrt (in xterm the bold font control seems always broken). See below for the solution.&lt;br /&gt;
&lt;br /&gt;
== Terminal ==&lt;br /&gt;
&lt;br /&gt;
I tried several terminals. But I found rxvt-unicode the easiest and fastest. This resources allow 4 terminals in one window. Bold font (unreadable to me) are disabled.&lt;br /&gt;
  $cat ~/.Xresources&lt;br /&gt;
  rxvt*cutchars: \$:[]&lt;br /&gt;
  rxvt*visualBell: true&lt;br /&gt;
  rxvt*foreground: white&lt;br /&gt;
  rxvt*background: black&lt;br /&gt;
  rxvt*geometry: 80x27&lt;br /&gt;
  rxvt*jumpScroll: true&lt;br /&gt;
  rxvt*skipScroll: true&lt;br /&gt;
  rxvt*scrollBar: false&lt;br /&gt;
  rxvt*boldFont:&lt;br /&gt;
  rxvt*boldItalicFont:&lt;br /&gt;
  rxvt*saveLines: 9096&lt;br /&gt;
  rxvt*mouseWheelScrollPage: false&lt;br /&gt;
&lt;br /&gt;
== Wifi ==&lt;br /&gt;
&lt;br /&gt;
Put in the /etc/apt/source.list&lt;br /&gt;
&lt;br /&gt;
  deb http://kernel-archive.buildserver.net/debian-kernel trunk main &lt;br /&gt;
&lt;br /&gt;
Installed linux-image-2.6.27-1 and firmware&lt;br /&gt;
&lt;br /&gt;
  wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-5.4.A.11.tar.gz&lt;br /&gt;
  tar xvfz iwlwifi-5000-ucode-5.4.A.11.tar.gz&lt;br /&gt;
  cp  iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode /lib/firmware&lt;br /&gt;
  aptitude install linux-image-2.6.27-1-686 hal&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend to disk works using the button Fn+F12.&lt;br /&gt;
&lt;br /&gt;
Suspend to ram (Fn+F4) does not work with sid intel driver, but works with the experimental one.&lt;br /&gt;
Using vesa driver, it works if the i915 driver is installed. I put the line:&lt;br /&gt;
  modprobe i915&lt;br /&gt;
&lt;br /&gt;
in /etc/rc.local.&lt;br /&gt;
&lt;br /&gt;
The trackpoint occasionally stops working after a resume. Apparently it is enough to move it &lt;br /&gt;
a little bit during the resume.&lt;br /&gt;
&lt;br /&gt;
== Special keys ==&lt;br /&gt;
&lt;br /&gt;
Some keys are intercepted by X Windows. The keycodes are&lt;br /&gt;
&lt;br /&gt;
  227 Fn&lt;br /&gt;
  234 Tab left&lt;br /&gt;
  233 Tab right&lt;br /&gt;
  176 Volume up&lt;br /&gt;
  174 Volume dn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mute switch the hardware volume which is not controlled by ALSA.&lt;br /&gt;
&lt;br /&gt;
ACPI links suspend to ram and to disc to Fn+F4 and Fn+F12 respectively. Screen brightness, thinklight, bluetooth works as well.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Everything works, but in a strange way. The hardware volume control is managed by acpi&lt;br /&gt;
&lt;br /&gt;
  $ cat /proc/acpi/ibm/volume&lt;br /&gt;
  level:          8&lt;br /&gt;
  mute:           off&lt;br /&gt;
  commands:       up, down, mute&lt;br /&gt;
  commands:       level &amp;lt;level&amp;gt; (&amp;lt;level&amp;gt; is 0-15)&lt;br /&gt;
&lt;br /&gt;
The mute button is linked to the mute command, but volume up and down are passed to X with keycode 176 174. I&lt;br /&gt;
thought that acpi was intercepting the key and send them to X using fakekey. I played in /etc/acpi/events but I didn't managed to change the behavior.&lt;br /&gt;
&lt;br /&gt;
== Skype ==&lt;br /&gt;
&lt;br /&gt;
Everything works downloading the skype version for Etch. After suspending and resuming the video does not work anymore.&lt;br /&gt;
The error message is:&lt;br /&gt;
&lt;br /&gt;
  Skype V4L2: Could not find a suitable capture format&lt;br /&gt;
&lt;br /&gt;
Several people propose to update the uvcvideo driver.&lt;br /&gt;
  svn checkout http://svn.berlios.de/svnroot/repos/linux-uvc/&lt;br /&gt;
  cd linux-uvc/linux-uvc/trunk/&lt;br /&gt;
  make&lt;br /&gt;
  make install&lt;br /&gt;
  modprobe uvcvideo&lt;br /&gt;
&lt;br /&gt;
But I didn't tried yet cause I'm still using the experimental kernel that does not come with packages for compiling modules.&lt;br /&gt;
&lt;br /&gt;
== GTK and Firefox ==&lt;br /&gt;
&lt;br /&gt;
Font size is too large. Solution:&lt;br /&gt;
  $cat /home/rdemaria/.gtkrc-2.0&lt;br /&gt;
  # -- THEME AUTO-WRITTEN DO NOT EDIT&lt;br /&gt;
  include &amp;quot;/usr/share/themes/Industrial/gtk-2.0/gtkrc&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  include &amp;quot;/home/rdemaria/.gtkrc-2.0.mine&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  # -- THEME AUTO-WRITTEN DO NOT EDIT&lt;br /&gt;
&lt;br /&gt;
  $cat /home/rdemaria/.gtkrc-2.0.mine&lt;br /&gt;
  gtk-font-name = &amp;quot;Sans 8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Printer and scanner ==&lt;br /&gt;
&lt;br /&gt;
Usb printer and scanner (HP Officejet J4580) works perfectly using cups, hpoj, xsane, hplib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RAM upgrade ==&lt;br /&gt;
&lt;br /&gt;
My X200 came with 2G of ram and 1 free slots. I bought:&lt;br /&gt;
   Crucial 2GB 204-Pin DDR3 SO-DIMM DDR3 1066 (PC3 8500) Laptop Memory Model CT25664BC1067 - Retail&lt;br /&gt;
&lt;br /&gt;
installed and replace the kernel with a bigmem one.&lt;br /&gt;
&lt;br /&gt;
== Hard disk upgrade ==&lt;br /&gt;
&lt;br /&gt;
My X200 came with a 160GB hardrive. I bought the 500GB hard drive&lt;br /&gt;
   Western Digital Scorpio Blue WD5000BEVT 500GB 5400 RPM SATA 3.0Gb/s Notebook Hard Drive - OEM&lt;br /&gt;
&lt;br /&gt;
and the adapter&lt;br /&gt;
  Link Depot USB2-SATA USB2.0 TO IDE/SATA Adapter Cable - Retail&lt;br /&gt;
&lt;br /&gt;
for transfer the data.&lt;br /&gt;
&lt;br /&gt;
I connected the new hard drive using the usb port. The drive was recognized as /dev/sdb. I create the partitions that reads:&lt;br /&gt;
&lt;br /&gt;
  $ sfdisk -d /dev/sdb&lt;br /&gt;
  # partition table of /dev/sdb&lt;br /&gt;
  unit: sectors&lt;br /&gt;
&lt;br /&gt;
  /dev/sdb1 : start=       63, size= 71553447, Id=83&lt;br /&gt;
  /dev/sdb2 : start= 71553510, size=905214555, Id= 5&lt;br /&gt;
  /dev/sdb3 : start=        0, size=        0, Id= 0&lt;br /&gt;
  /dev/sdb4 : start=        0, size=        0, Id= 0&lt;br /&gt;
  /dev/sdb5 : start= 71553573, size=894467007, Id=83&lt;br /&gt;
  /dev/sdb6 : start=966020643, size= 10747422, Id=82&lt;br /&gt;
&lt;br /&gt;
Then made the filesystem and copy the files:&lt;br /&gt;
  $ sudo mkfs.ext3 /dev/sdb1&lt;br /&gt;
  $ sudo mkfs.ext3 /dev/sdb5&lt;br /&gt;
  $ sudo mkswap    /dev/sda6&lt;br /&gt;
  $ sudo mount /mnt/sdb1&lt;br /&gt;
  $ sudo mount /mnt/sdb5&lt;br /&gt;
  $ sudo rsync -a --delete \&lt;br /&gt;
  --exclude /mnt/sdb1 \&lt;br /&gt;
  --exclude /mnt/sdb5 \&lt;br /&gt;
  --exclude /home \&lt;br /&gt;
  --exclude /proc \&lt;br /&gt;
  --exclude /sys \&lt;br /&gt;
  --exclude /lib/init/rw \&lt;br /&gt;
  --exclude /dev \&lt;br /&gt;
  / /mnt/sdb1&lt;br /&gt;
  $ cd /mnt/sdb1; mkdir /home /proc /sys /lib/init/rw /dev; cd &lt;br /&gt;
  $ sudo rsync -a /home/ /mnt/sdb5&lt;br /&gt;
  $ sudo umount /mnt/sdb5; sudo umount /mnt/sdb1&lt;br /&gt;
&lt;br /&gt;
Finally install grub&lt;br /&gt;
  $ sudo grub --no-floppy&lt;br /&gt;
  $ geometry (hd1)&lt;br /&gt;
  &amp;gt; root (hd1,0)&lt;br /&gt;
  &amp;gt; setup (hd1)&lt;br /&gt;
  &amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
and replace the disk. (I tried to boot from the usb to check the new hard drive, but I messed up the old installation...)&lt;br /&gt;
&lt;br /&gt;
For some reason the suspend to disk was not working anymore. But &lt;br /&gt;
  $ sudo aptitude reinstall uswsusp&lt;br /&gt;
fixed the problem answering yes to use the swap disk.&lt;br /&gt;
&lt;br /&gt;
== Issues with non-us keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
In recent versions of xserver (as of version 1.4.0.90-7) keyboard-layout is handled by hal, so settings done in gnome will be overridden. To have a non-us keyboard layout follow these steps (taken from http://bbs.archlinux.org/viewtopic.php?id=44311 and http://wiki.archlinux.de/title/Evdev (last is german)):&lt;br /&gt;
&lt;br /&gt;
 1. comment out all InputSection's in xrog.conf&lt;br /&gt;
 2. cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy/&lt;br /&gt;
 3. edit /etc/hal/fdi/policy/10-keymap.fdi&lt;br /&gt;
 4. set proper keymap there instead of &amp;quot;us&amp;quot;&lt;br /&gt;
 5. restart X&lt;br /&gt;
&lt;br /&gt;
== TO BE CONTINUED ==&lt;/div&gt;</summary>
		<author><name>Dinyar</name></author>
		
	</entry>
</feed>