NanoNote (Debian) sleep, removing pyneo, X keymap?

Niels Serup ns at
Wed Dec 8 09:24:02 EST 2010

> It has this pyneo software on it (the Debian image is from the pyneo
> website), which I'd like to remove since I don't know what it is or
> does. Is there a way I can remove it?
You could debootstrap Debian (or any other distribution). See (to remove the old image and
add the new one, just use usbboot, see )

> And, again, the keymap in X - is there a way to fix this? Is there a
> file I can replace, and one I can replace it with?
This is a little tricky, but this is how I made it work:

First, create a script (call it something like ''). This is the
script you will have to run to start X. Save this somewhere:

  . /etc/profile
  export DISPLAY=:0.0
  export HOME=/root
  # Start X
  Xfbdev -screen 320x240x32 r -rgba rgb -br -keybd \
      evdev,,device=/dev/input/event1,xkbmodel=pc105 &
  sleep 1
  # Hide the cursor
  unclutter -root -idle 1 &
  # Start window manager (ratpoison here, could be something else)
  ratpoison &
  sleep 2
  # Load keymap for modifier keys
  xmodmap /root/.Xmodmap

The standard pc105 xkbmodel will not work for this, which is why you
will have to create a file with xmodmap statements (in the
script, I have located this in /root/.Xmodmap). This file is somewhat
long (and the Fn button doesn't work, meaning you'll have to press Shift
+Left arrow+number instead of Fn+number to enter a number), so I have
attached it to this mail.

> I'm a little annoyed at the what the dist-upgrade thing did, but I'd
> really rather fix it than reinstall, because I've had to put a lot of
> effort into getting it to work as well as it does. If it's going
> wrong, I'm going to be rather upset.

A clean install, even if it's troublesome, might be the best solution.
If you're using the image from pyneo, I don't see why you would want to
dist-upgrade (isn't the image sid?), but if you're forced to reinstall
from scratch, you could just save a list of all packages installed to a
file and then use that file when your new system is ready. Something
like this:

  dpkg-query -W --showformat="\${Package} " > backupfile

-------------- next part --------------
keycode 21 = equal plus asciitilde 3

keycode 24 = q Q exclam
keycode 25 = w W at
keycode 26 = e E numbersign
keycode 27 = r R dollar
keycode 28 = t T percent
keycode 29 = y Y asciicircum
keycode 30 = u U ampersand 7
keycode 31 = i I asterisk 8
keycode 32 = o O parenleft 9
keycode 33 = p P parenright

keycode 38 = a A aring
keycode 39 = s S 0x00A8
keycode 40 = d D ae
keycode 41 = f F minus
keycode 42 = g G underscore
keycode 43 = h H braceleft
keycode 44 = j J bracketleft 4
keycode 45 = k K bracketright 5
keycode 46 = l L braceright 6

keycode 52 = z Z oslash

keycode 57 = n N less 1
keycode 58 = m M greater 2
keycode 59 = comma semicolon apostrophe
keycode 60 = period colon quotedbl
keycode 61 = slash question less 0

keycode 123 = Prior
keycode 122 = Next

keycode 111 = Up
keycode 114 = Right
keycode 116 = Down
keycode 113 = Left

keycode 95 = Prior F9 F11
keycode 96 = Next F10 F12

keycode 22 = BackSpace BackSpace Delete

clear Control
keycode 105 = Control_R
add Control = Control_R
keycode 108 = Mode_switch
keycode 37 = Undo

More information about the discussion mailing list