|

Sokrates
19 August 2006
Summary
- Works great -- no fan, but it doesn't get all that hot
- Suspend to disk (hibernation) is working in x-windows and
console
- Suspend to RAM (sleep) is also working well, though it may
be unstable
- See local Ubuntu info
To Do
- figure out how to use rfb (RDP server) or KDE's remote desktop
- first create an invitation on sokrates
- then log in using KDE Remote Desktop (should use rdp)
- you should be able to share a desktop in this way
- you may need to run this differently, through a tunnel
Hints and reminders
Dual monitor
- boot with the slightly modified xorg.conf (xorg.conf.1024)
- press Fn+F8 to switch to external screen
- press again to view display on both monitors
- alternatively, boot with xinerama configuration xorg.conf.dual
- the size is compressed and I was unable to do anything about it
- first method is preferable
- see Ubuntu on X1
Rest modes
- the machine goes to sleep when you close the lid
- make sure the blue light is turned off (Fn-F2)
- resuming takes a few seconds; press Fn-Up to bring back
the screen
- after a dozen suspensions, programs might become
sluggish, so reboot
- others report the sleep mode is not reliable, but I've
had no failures
- safest way to hibernate is to press Ctrl-Alt-F2, log in as
root, and press Fn-F1
- nearly as safe to do the same but log in as tord
- dvale icon should work, but is less fully tested
- hibernation is triggered in x-windows when there's 5min
left on
the battery
- to get a battery warning if you're not running x-windows,
type batmon
Peripherals
- to disable the touch pad, issue "sudo modprobe -r psmouse"
- it should really be handled by ksynaptics, but it's not
working
- it may be that the syndaemon program can be told to
handle this
- mobile Alkybiades 00:0F:DE:12:1D:FA (model?)
- USB devices -- configure with udev (see installation history below)
Connect to Internet
- type dhcp to connect to the internet and dhav to disconnect
- Kubuntu is designed to hotplug connect ; ask on the forums
how to turn this on
- hotplugging should work fine with my custom sov and dvale
scripts
- the network card driver (tg3) is supposed to have problems
with sleep, so my scripts unload it and don't reload it on resume
External hard drive
- label the partitions
- use /dev/disk/by-label
- udev finds them
Internationalization
* /var/lib/locales/supported.d has a list of locales to generate
o local has the list you did yourself
o any other file (such as en or no) may have stuff you don't want
* /etc/environment has default system locale settings
* .bashrc has the user's locale settings (if different)
* just reconfigure locales (dpkg-reconfigure -plow locales)
o /usr/lib/locale (has the generated locales)
* Commands
o locale (see current locale)
o locale -a (see available locales, read from /usr/lib/locales)
Process control
- to see a list of running processes, press Ctrl-Esc -- you
can use this screen to terminate some programs by the 'kill' command
- to start a program, you can press Alt-F2 and type the
beginning of the name; you'll get a menu of all programs that match;
use Tab for completion
SD card reader
- added driver in 2.6.17.8 kernel, works flawlessly
Sound
- when regulating sound, it's generally best to leave master
volume on high and moderate the PCM channel (it's more noisy)
- amarok is the fancy way of playing music -- claims to
integrate with ipod
- it seems to kill the artsd sound server on a regular basis
- I installed the amarok-gstreamer engine -- may work better
- you can play music in console by going to /platon/music and
issuing "play *"
- regulate volume with a mixer, such as kmix or alsamixer
- the built-in speaker is terrible, but with headphones the
sound is great
- you can close the lid to sleep while playing music; it will
resume playing
- if it doesn't, try toggling the master sound switch -- in
Kmix, it's the first green radio button in Output, labeled Master -- or
go into kcontrol | sound, and check & uncheck "Start sound server"
to restart the sound server
Wireless
- Works -- modules load on boot if device is turned on (Fn+F2)
- Driver instructions
- Gentoo's instructions
- Firmware
- Instructions -- copy the *.fw files to /lib/firmware/2.6.17.8sd
- Press Fn+F2 to turn on (with Bluetooth)
- or you'll get Radio Frequency Kill Switch is On (in dmesg)
- modprobe ieee80211_crypt_wep
- WPA instructions
- ieee80211_crypt_ccmp
- ieee80211_crypt_tkip
- # options ipw2200 hwcrypto=0 (if it causes trouble)
- Forum
What needed work
- x-windows -- full resolution
- console fonts -- Norwegian letters and euro
- audio -- pc speaker
- bluetooth quirks
- wifi quirks
- update to Dapper Drake
- new 2.6.17.8 kernel
- suspend to RAM
- suspend to disk (optimizing)
Questions (ask the people who made X1 web pages or on
Ubuntu forums)
- Ubuntu Norge
- User-friendly Ubuntu utilities
- read Martin's page for
updates and comments on the hard drive problem, which may apply to
sigillo -- perhaps turn dma off?
- has anyone succeeded in mapping the Fn+F1 (hibernate) key
to a script in x-windows? It works fine in the Linux console.
- can wakeup be told to respond to the keyboard?
(/proc/acpi/wakeup)
- move /tmp into RAM to reduce disk access?
- how to expand the size of the kernel ring buffer? dmesg is
trunkated on boot
- how can I get KDE's acpi setup (klaptop_acpi_helper) to use
the /etc/apci scripts?
- lots of unnecessary modules load -- how do I keep them from
loading at all?
joydev tsdev fan sony_acpi lp parport_pc parport fbcon font bitblit
-- some won't even unload: vesafb ipv6
Successes
- bluetooth is working very well with custom scripts blav
and blåk/blåt --
- modules must be unloaded every time the device is turned
off
- bluez-utils must typically be started twice, might just
need time
- pand command must be defined in /etc/default/bluez-utils
- you could improve the scripts by running hcitool dev and
inq first
- suspend to disk -- the script is pretty solid, though tg3
could be an issue
- suspend to ram -- seems robust
Bugs (not confirmed for dapper)
- turning off the touchpad when typing fails
- should be handled by ksynaptics (see Kontrollsenter |
Tilleggsenheter | Touch Pad)
- ksynaptics sees the touch pad, but the command to turn it
off fails
- "sudo modprobe -r psmouse" turns the touchpad off while
retaining the external mouse
- bootlog isn't working, perhaps because it doesn't see the
console device -- you may need to include that information as a boot
parameter. Try asking the maintainer.
- xine
fails on the second run -- first time is fine. Colors turn psychedelic,
but "xine --verbose=10" shows no difference. Restarting the session
fixes the problem, so it isn't a xine configuration issue. Other
applications that use xine are effected -- totem, kaffeine.
Guides
Special keys (only partially tested)
- Standby (Fn+Esc)
- Hibernate (Fn+F1)
- Unknown key pressed (translated set 2, code 0x8a on
isa0060/serio0)
Use 'setkeycodes e00a <keycode>' to make it known
- issued in linux console "setkeycodes e00a 155"
- added to no-x1 keyboard to "dvale" script, which is
/etc/acpi/hibernate.sh
- the mapping doesn't work in x-windows (cf. Questions)
- WLAN/Bluetooth on/off (Fn+F2 - turn off to save battery
power)
- Battery (Fn+F3)
- Unknown key pressed (translated set 2, code 0x87 on
isa0060/serio0)
Use 'setkeycodes e007 <keycode>' to make it known
- Numlock (Fn+F4)
- CRT/LCD (Fn+F8 - needs an external monitor to be connected)
- Fn+F10
- Unknown key pressed (translated set 2, code 0x89 on
isa0060/serio0)
Use 'setkeycodes e009 <keycode>' to make it known
- Prnt (Fn+F11, saves a screen snapshot (where?), Pause
Fn+F12 too)
- Display brightness (Fn+arrow-up or arrow-down)
- works fine -- if you get "key unknown" that doesn't
affect functionality
- Mute, as well as volume up/down can be configured via Gnome
System Settings or xbindkeys
Hardware
Dell Latitude X1 PP05S (cf. chip pictures)
- bluetooth is working
great
- Dell Truemobile, connected internally to the USB bus
- internal device 00:10:C6:63:9A:B4
- BIOS
- version A02
- Press F2 on startup to enter CMOS
- BIOS A04 available -- see changelog (very minor changes)
- CDRW / DVD
- NEC DVD+-RW ND-6500A
- when booting with it connected, it appears as an IDE drive
- when hotplugging it, as a usb mass storage device
- CD music player untested (problem reported)
- burner untested
- Compact Flash / MMC slot
(compact pcmcia)
- on Cardbus bridge, works with pcmcia service and cardmgr
- set to automount; untested
- CPU
- 1.1GHz, automatic CPU frequency regulator down to 600MHz
- display
- works at the maximum resolution, 1280×768 at 3D 900
FPS
- brightness downed on battery --
use Fn-Up to brighten
- firewire
- supposedly works; untested
- graphics
- Intel 915GM, got an i810 driver from xorg CVS
- hard disk
- 30GB -- WinXP 6GB, Linux / 7GB, swap 1.5GB, platon
13.5GB,
- 1GB felles is fat32 for use by Linux and Windows
- LAN (see ADSL)
- Broadcom BCM5751 gigabit ethernet, tg3 driver, working
- modem will likely work
with sl-modem
or else linuxant (not installed)
- modules must be unloaded for sleep & hibernate
- mouse
- unload modules during suspend and restart
- unplug and replug mouse after sleep to get scroll wheel
back
- RAM
- 768MB
- could use this for /tmp?
- SD slot (PCI 02:01.2 Class 0805: Ricoh R5C841)
- driver sdhci works late Jan 2006 (not installed)
- added to 2.6.17-rc1 kernel in March 06
- included in Dapper Drake flight releases
- able to read both SD and MMC cards (unlike WinXP)
- sound is working fine
- put this .asoundrc
in your homedir to avoid clicking sounds (if any)
- occasional hangs in KDE
- touchpad
- works, not extensively tested
- gpm in linux console allows pasting with right button
- finger taps, vertical scrolling, turned off while typing
- configure in kcontrol (installed ksynaptics)
- can stop working properly after CPU suspend? (untested)
- restart the session to fix
- USB 2.0
- tested with bluetooth dongle, mouse, hard drive
- automounts USB stick
- wireless
- Intel PRO/Wireless LAN 2200BG -- ipw driver, needs
firmware
- supposedly works fine; untested
- may benefit from updated driver (see rebuilding kernel)
- access-point driver in the works!
Installation history
01 December 2007 -- scanner
I'd never read Troy Rollo's last e-mail about the HP 3500 scanner driver:
Troy Rollo troy at troy.rollo.name
Sat Apr 21 2007
I have updated the HP3500 SANE backend in CVS. The file
"backend/hp3500.c" will work as is in version 1.0.18 backends. The
following changes were made:
Improve speed and reduce noise of most resolutions
Deal with an escape code discovered in the scanner's protocol
Use hardware detailed calibrations for resolutions up to 300
Use improved software detailed calibration for other resolutions
Add more debug information
Drop the 25dpi resolution
Make 200dpi the default (the same as the Windows frontend)
Add code (not used yet) to deal partially with grayscale and lineart scanning
Use I18N strings where appropriate
The easiest way to get a copy of this is to download a snapshot (dated 22-April-2007 or later) from http://www.sane-project.org/snapshots/
I really don't plan to work on this any more - I have spent far too
much time on it already and I have other projects in urgent need of
attention. Some
people have asked about line art and grayscale scanning - if you are
interested in this you have the souce code and that together with the
information at http://projects.troy.rollo.name/rt-scanners/chip.html contains all I know about the scanner. Otherwise gimp can convert full colour to greyscale or black and white.
My last attempt with the scanner was with an earlier version
of libsane -- Ubuntu's libsane now certainly contains the updated
driver, and you should give it a try again. He says "The HP3500C isvery prone to overheating."
28 April 2007 -- vnc
I get this error when starting the vnc server:
root@sokrates:~# vncserver :1 -geometry 640x480 -depth 8
xauth: error in locking authority file /home/name/.Xauthority
xauth: error in locking authority file /home/name/.Xauthority
New 'X' desktop is sokrates:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sokrates:1.log
The process table shows this:
# ps aux | grep vnc root
6431 0.1 0.3
4416 2452 pts/2 S
21:59 0:00 Xtightvnc :1 -desktop X -lf 1024 -auth
/home/name/.Xauthority -geometry 640x480 -depth 8 -rfbwait 120000
-rfbauth /root/.vnc/passwd -rfbport 5901 -fp
/usr/share/X11/fonts/Type1/,/usr/share/X11/fonts/Speedo/,/usr/share/X11/fonts/misc/,/usr/share/X11/fonts/75dpi/,/usr/share/X11/fonts/100dpi/
-co /usr/X11R6/lib/X11/rgb
Why is it looking for /home/name/.Xauthority?
28 April 2007 -- scanner
lsusb:
Bus 002 Device 002: ID 03f0:2205 Hewlett-Packard ScanJet 3500c
Or in detail below. The scanner starts, but then fails to produce
a scan. The scanimage test looks promising, but then just sits there:
# scanimage -T -v
scanimage: rounded value of br-x from 215.9 to 215.893
scanimage: rounded value of br-y from 298.45 to 298.454
scanimage: scanning image of size 5099x7050 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 15297 bytes...
See http://www.sane-project.org/README.linux for possible permissions complications.
16 December 2005 -- udev
A flash stick, a camera, an iPod, and a hard drive all need to have their own device nodes via udev.
1. Find the ID of your usb device:
udevinfo -a -p `udevinfo -q path -n /dev/sda`
2. Select a unique identifier from one of the displayed fields, such as
SYSFS{product} or {serial} and write a rule in
/etc/udev/rules.d/udev.rules (see /vh/Tord/installasjonshistorie/udev.rules-try.these):
BUS=="usb", KERNEL=="sd?1", SYSFS{product}="Flash", NAME="media/%k", SYMLINK="flash"
BUS=="usb", KERNEL=="sd?1", SYSFS{product}="Camera", NAME="media/%k", SYMLINK="kamera"
BUS=="usb", KERNEL=="sd?2", SYSFS{product}="iPod", NAME="media/%k", SYMLINK="iPod"
BUS=="usb", KERNEL=="sd?1", SYSFS{serial}="04021701", NAME="media/%k", SYMLINK="film"
BUS=="usb", KERNEL=="sd?2", SYSFS{serial}="04021701", NAME="media/%k", SYMLINK="bilder"
BUS=="usb", KERNEL=="sd?3", SYSFS{serial}="04021701", NAME="media/%k", SYMLINK="musikk"
BUS=="usb", KERNEL=="sd?4", SYSFS{serial}="04021701", NAME="media/%k", SYMLINK="kommunal"
This makes udev create a device node using the SYMLINK value -- e.g.,
/dev/iPod. You can then use /etc/fstab to define the mount point, for instance:
/dev/flash /media/flash vfat defaults,uid=tord,gid=users,umask=000,noauto 0,0
/dev/camera /media/camera vfat defaults,uid=tord,gid=users,umask=000,noauto 0,0
/dev/iPod /media/iPod vfat defaults,uid=tord,gid=users,umask=000,noauto 0,0
/dev/film /media/film ext3 noauto,defaults 0,0
/dev/bilder /media/bilder ext3 noauto,defaults 0,0
/dev/musikk /media/musikk ext3 noauto,defaults 0,0
/dev/kommunal /media/kommunal vfat defaults,uid=tord,gid=users,umask=000,noauto 0,0
It's likely that Ubuntu Hoary has autofs installed, see gtkpod readme and add the necessary commands, or (better) let gtkpod handle mounting.
11 October 2005 -- kcontrol problems
Administrator mode doesn't work in kcontrol -- the problem
surfaces occasionally in KDE and there doesn't seem to be a good
solution. One suggested workaround I implemented:
nano /etc/kde3/kdm/kdmrc
Set "AllowRootLogin=true", which obviously allows user root to run
x-windows. However, that doesn't seem to have solved the problem.
However, you can now simply run kcontrol from user root (not tested).
Other proposed workarounds:
nano /etc/kde3/kdm/kdmrc, change the GreetString
Not tested if this has an effect. Here's another interesting one:
The way I fixed it was to go into the kmenu menu
editor by right click on the start menu icon. Then went to the Control
Center. I highlighted then in the tabs on the top I select Edit. In the
Edit tab select copy. Now hit the Edit tab again and this time select
Paste. Now you have 2 Control Centers. Rename the new one to say '
Control Center (Super User) '. With Control Center (Super User)
highlighted, check the box Run as adiffernet user. In the box below
enter root as the user. Save and exit.
Now when you select Control Center (Super User) you are actually
editing root's Control Center so that is why you need to leave the
orginal Control Center so as to make changes to your own user account.
But for the ones that required Administrator Mode can only be done as
root so that will not cause any problems with your own Settings.
That would at least be a permanent fix.
17 September 2005 -- gstreamer
Installed mpg123 xmms-mad (mp3-support in xmms), mp3gain
vorbisgain gtkpod-aac (aac-support in gtkpod) faac gstreamer0.8-faac
grip gstreamer0.8-faad faad easytag tagtool -- mainly packages relating
to playing music and the ipod. Debian has just released kaffeine with a
gstreamer engine; this may also be available for Kubuntu somewhere --
likely in the KDE 3.4.2 feed you already have the source line for.
12 September 2005 -- suspend to RAM (sleep)
These sleep modes supported: S0 S3 S4 S4bios S5
(/proc/acpi/sleep).
In the sov script I unload ipw2200 and several usb
modules -- those that would let me -- before sleeping, and load the
usb modules back afterwards. The odd trick on the X1 for waking up is
odd:
press the Fn-Up key for brightening the screen. The up and down arrows
don't produce keycodes, but seem to speak directly to the graphics
card,
which is just what we need to get it to come back to life. So
far, suspend hasn't failed once -- I gave up on using it on Sigillo,
since it occasionally failed, and some X1 users have said it's not
reliable.
This has been sort-of integrated into the acpi scripts to make
the system go to sleep automatically on closing the lid. I tried Martin's pagefor
ideas, but my own scripts worked much better than those shipped, so I
stuck with them, although the integration with acpi really is not very
good. They're fast though, and seem to be robust.
Martin writes that a patch is needed for tg3 to wake up after
suspend to RAM (local copy in /platon/programvare/linux/patches), but
it's not clear it's needed -- can't you just unload tg3 before
suspending and reload it afterwards? tg3 works fine after suspending to
disk.
KDE uses /usr/bin/klaptop_acpi_helper (from klaptopdaemon) to
handle suspend, but it's not clear how to get this setup to hook into
the /etc/apci scripts.
9 September 2005 -- security upgrade and gcc
Installed ksysv (manage run levels) libncurses5-dev
(curses-interface for configuring the linux kernel) libqt3-mt-dev
(graphic interface for configuring the kernel) kernel-package (tools
for building the kernel) kompare (compare two logs or other text
documents, useful for tracking changes and tracking down bugs).
Installed cpp-3.3 g++-3.3 gcc-3.3-base gcc-3.3
libstdc++5-3.3-dev libstdc++5 -- all of these are needed to compile the
linux kernel. Also installed cpp-4.0 g++-4.0 gcc-4.0-base gcc-4.0
libstdc++6-4.0-dev libstdc++6, or the more recent version of these
tools, which by now are stable and in common use. Also installed gcc
cpp binutils libgcc1 libmudflap0-dev gcc-4.0-locales, further packages
for compilation.
Installed hexedit khexedit (programs for editing or inspecting
binary files) krename (for batch renaming of files) gnome-bluetooth (a
gnome desktop bluetooth tool).
Finally, I installed some programs for playing DVDs --
gstreamer0.8-dvd libdvdnav4 libdvdplay0 dvdrip lsdvd.
I also accepted a security update of two dozen core KDE
packages and a new kernel! There's an advantage for you for not running
a custom kernel.
All packages installed without protest.
7 September 2005 -- PC speaker and audio mixer
The PC speaker was silent when I wanted to use it for a
battery monitor alarm script. It turns out there are some quirks in the
sound card; use alsamixer, amixer, or (in KDE) KMix to set the
variables:
- "PCM out" has two settings: "pre 3D" (use this one) and
"post 3D" (which blocks the PC speaker)
- If the "3D Control Switch" is on, then increasing the "3D
Control Depth" and "3D Control Center" controls will muffle the PC
speaker and main speaker -- keep the switch off
- If you turn off "External Amplifier", both main speaker and
PC speaker are turned off
I set the volume on everything that didn't seem to interfere to max and
saved with alsactl store, creating a backup copy of the alsa
configuration with
alsactl store -f /var/lib/alsa/asound.state.max
Then in the batmon script, I restore these max settings for the alarm
to work:
alsactl restore -f /var/lib/alsa/asound.state.max
Quirky but not problematic once it's known. If you need to tweak alsa
configuration, or you need to control some setting in a script, you can
use amixer. See amixer -h for details, or use this sort of thing:
amixer -c 0 cset numid=2 31,31
That sets the master volume to max.
Also installed xmms-arts amarok-gstreamer, set xmms to use the arts
plugin (works now) and amarok to use the gstreamer engine -- and in
Kontrollsenter | Lyd, I set artsd to give up control to other programs
within 10 seconds. However, I discovered xmms can't play mp3 files --
though sox has no problems. I installed xmms-mad, which should handle
this for xmms.
6 September 2005 -- fonts in the linux console and x-windows
See Keyboards and fonts
(local).
The priority of languages used in Linux documents in console
is set
in the environment variable LANGUAGE (see echo $LANGUAGE). It is
currently "nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en_GB:en". The main
language
is set with "just reconfigure locales", or you can set it individually
per user -- currently steen's .bashrc defines US locale, but that may
not be the optimal solution. Type "export" to see all the environment
variables, which are per-user; they can apparently be set as the output
of this command shows, for instance:
declare -x OLDPWD="/home/steen"
I tried to define locales in the us and no keyboard scripts,
but the
environment variables don't change if you put them in a script.
In /etc/console-tools/config I uncommented "DO_VCSTIME=yes" so
that
consoles now have the time in the upper right corner -- but then
discovered that this interfered with marking text with a mouse, as the
screen was in effect updated once a second; I turned it off again.
The console font is set to Latin16, with euro, in
/etc/kbd/config and
repeated in /etc/acpi/resume.sh and /usr/local/bin/dvale:
consolechars -f lat9u-16
4 September 2005 -- installing and uninstalling (tweaks)
Installed sysv-rc-conf (run levels), qtparted (partition
manager),
gparted ntfsprogs (supports WinXP partitions, needed to mount WinXP on
sokrates), txt2html (convert txt to html files), pdftohtml (convert pdf
files to html), prelink (speed up OpenOffice loading). The main thing
is
ntfsprogs, which I hadn't noticed hadn't been installed. Verified that
the WinXP partition mounts correctly (read-only). I ran "prelink
--all",
which makes all applications start faster -- it takes quite a while and
the CPU is near 100% utilization.
Uninstalled packages relating to logical volume management and
raid
-- lvm, lvm2, evm, and md. They showed up in the boot log and are
irrelevant. Uninstalled fetchmail, since Tord is using smtp. Turned on
bootlog by setting /etc/default/bootlogd to yes.
Discovered that the syndaemon program, which regulates the
synaptics touchpad, is in fact started with KDM, so there's no need to
worry about including it in some .xsession file.
Set grub to boot without showing menu, with a one-second
chance
(press ESC) to stop the boot. If Tord regularly needs WinXP, this
should
be unset, but for now it's practical for frequent suspends.
The battery says it will last two hours, but even working in
console I got a bit less -- maybe and hour and fifty minutes. The last
ten minutes the warning light comes on, but a bell would be nice.
2 September 2005 -- Norwegian characters
During the installation process I had run "just reconfigure
locales" and selected UTF-8, since the Ubuntu documentation said this
is
what Ubuntu uses. However, this turned out to create problems for
Norwegian letters -- the setup sort of worked, but it was unstable,
didn't resume well from suspend, and so on. Reconfiguring locales to
use
8859-1 instead solved the problem. I also created a script to switch
between Norwegian and US keyboards in the linux console, and discovered
I needed to use the standard and not latin1 keyboard to get the right
delete key.
The character set issues look like they're solved -- Norwegian letters
type fine on the command line. However, kuser is surprisingly crash
prone (bad version, should be bugreported) and won't let me enter
Østberg as user tord's real name. I went straight into
/etc/passwd and added it there -- and KDE starts up with no protests!
KDE's Control center also accepts the letter (Sikkerhet og personvern |
Passord og brukerkonto).
1 September 2005 -- nvu, KDE og firefox og mozilla på
norsk, xprint, video, bootsplash
Ordnet opp i sources.list og installerte nvu grub-splashimages
update-manager ksynaptics og mozilla-psm. Dessuten mplayer-686 (med
xvid og faad), flac og realplayer -- det må være Marillats
pakker. Nå er det bare en nyere versjon av wajig som
mangler. Satt KDE språk til norsk og installerte norsk
mozilla-locale-no-db og mozilla-firefox-locale-nb;
thunderbird-locale-nb er for gammel til å passe til den
nåværende versjonen (spør Tollef Fog Heen
<tfheen@debian.org>). Installerer også xprt for den nyeste
mozilla-firefox (som fra nå av vil hete firefox) og
mozilla-browser, men måtte behold xprt-xprintorg for thunderbird.
Also installed feh (view images), myspell-nb (provides
openoffice.org-spellcheck-nb, while aspell-no provides
aspell-dictionary), mozilla-thunderbird-enigmail (encrypted e-mail),
ttf-indic-fonts (Hindi, Cannada, Telegu, et al.), and pixmaps (for
editing icons).
Installed fbset hddtemp filelight kdirstat fbi language-support-nb
transcode cdrdao (for CD burning with k3b) fping mpeg2dec a52dec
gringotts (for secure passwords) ca-certificates xvid4conf
libdivxdecore0 libdivxencore0 mjpegtools toolame gksu (for
update-manager).
Added this line to /etc/hddtemp.db:
"TOSHIBA
MK3006GAL"
194 C "Toshiba MK3006GAL"
so now the script "temp" works.
Configured grub to use a home-made picture, following instructions in
/platon/bilder/zinfo -- I was disappointed to see it's just a
background image for grub, not a bootsplash image. For true bootsplash,
see fbsplash -- the bootsplash project seems to have
lost steam.
Here is a chart of kernel mode
numbers for the 'vga='
boot parameter.
Colours |
640x400 |
640x480 |
800x600 |
1024x768 |
1152x864 |
1280x1024 |
1400x1050 |
1600x1200 |
4 bits |
? |
? |
0x302 |
? |
? |
? |
? |
? |
8 bits |
0x300 |
0x301 |
0x303 |
0x305 |
0x161 |
0x307 |
? |
0x31C |
15 bits |
? |
0x310 |
0x313 |
0x316 |
0x162 |
0x319 |
0x340 |
0x31D |
16 bits |
? |
0x311 |
0x314 |
0x317 |
0x163 |
0x31A |
0x341 |
0x31E |
24 bits |
? |
0x312 |
0x315 |
0x318 |
? |
0x31B |
0x342 |
0x31F |
32 bits |
? |
? |
? |
? |
0x164 |
? |
? |
? |
31 August 2005 -- software suspend
Following the instructions in Ubuntu
Power Management (local copy),
I added "resume=/dev/hda5" to grub (I put it in both the #kopt line and
the kernel options lines). Don't run update-grub as it wipes out all
your customizations -- just keep a conservative option available to be
on the safe side, and a copy of the sophisticated one so you can copy
it back when a new kernel overwrites it.
To suspend to RAM, either press your machine's sleep button or run
sudo /etc/acpi/sleep.sh
To suspend to disk, either press your machine's hibernate button or run
sudo /etc/acpi/hibernate.sh
I rebooted to test. Issuing the hibernate script as user root
just works -- though it takes the machine literally a couple of minutes
to suspend to disk, no idea what it's doing.
I then put the script on an icon, but permissions is a problem -- user
tord has admin rights, but only after entering a password. As user root
I typed "visudo" and added this line to the sudoers file:
tord ALL= NOPASSWD: ALL
Now user tord should be able to suspend with no further questions --
that worked, but no, it didn't do the trick.
The
scripts are quite intelligent -- a whole suite of them.
I added this to /etc/acpi/resume.sh:
/usr/sbin/915resolution 45 1280 768 24
to ensure the screen comes back at the right resolution.
Finally I mapped the script in KMenuEdit to Ctrl-Alt-Down, run as user
root, and it just works; I removed the icon.
I don't know if some functions will have problems after a hibernation
cycle; not fully tested. Bluetooth doesn't seem to be working, however
-- the bnep0 node isn't created. Unloading and reloading the
modules (cf. /usr/local/bin/blueoff for details) seems to fix it.
Note you can run x-windows from user tord (and thus from sigillo over
bluetooth) by issuing
su -p root
which preserves the environment.
I ran "just reconfigure locales" and deactivated all but US and nb-NO
UTF8.
If you want to mount /tmp in memory to reduce harddrive spinups, add
this to /etc/fstab:
none /tmp tmpfs defaults 0 0
Suspend to ram is not even tested, as it's known not to be stable.
30 August 2005 -- ubuntusetup script
Downloaded wget
http://download.ubuntuforums.org/ubuntusetup/ubuntusetup.sh and ran it;
it installed the following packages:
build-essential -
Compilers needed to build programs
beep-media-player - XMMS gtk2 clone. Compatible with XMMS
plugins/skins
gstreamer0.8-mad - Add MP3 support for Rhythmbox
w32codecs - Windows codecs for playing various files
streamtuner - Online music streamer from shoutcast and a
few others
xine-ui - The xine video player, user interface for
playing dvd's and such
totem-xine - Have totem use xine so you can actually use
it to play videos etc.
msttcorefonts - Windows True Type Fonts
libdvdcss2 - DVD Library
gnomebaker - The best gnome/gtk2 cd/dvd/cdrw burning
software
gftp - Ftp Client
flashplayer-mozilla - Flash plugin for firefox
Java JRE 1.5 - Latest version of Java
Custom Firefox Forms - Make you firefox form widgets look
decent
/etc/apt/sources.list - Add in universe, multiverse and
misc repositories
Misc Windows Fonts - Misc fonts that are missing in the
msttcorefonts package
These packages did not get downloaded, as they're currently borked
(says the script -- I've not tested):
acroread - Latest version of Adobe Acrobat
Reader
acroread-plugin - Firefox Acobat Reader Plugin
I also installed these:
petris openssh-server nmap okle xbindkeys mp3blaster
xine-ui gnupod-tools gtkpod xbindkeys-config ogle-gui
Then I edited the sources.conf file to be a bit more conservative. The
good news, though, is that Mariallat's packages appear to all be
available and likely work fine! Ubuntu is definitely exceeding
expectations.
29 August 2005
Three problems during installation:
- no user root is created, and when messing around I
accidentally
set a root password I couldn't reproduce. Solution: boot in rescue mode
and reset the password.
- screen black after base installation
Solution: set "vesa" instead of "i810" in /etc/X11/xorg.conf
- couldn't connect to the Internet
Solution: type dhclient (you may also have had to set up dhcp auto in
/etc/networking/interfaces)
Patches
- 915resolution_0.4-1_i386.deb to up resolution to 1280x768
- i810_drv.o from http://www.fairlite.demon.co.uk/intel.html
- copy the xorg driver to
/usr/X11R6/lib/modules/drivers/i810_drv.o-xorg
- copy the new driver to /usr/X11R6/lib/modules/drivers/
- backup kept in /platon/programvare/linux/binary
- change driver back to "i810" in /etc/X11/xorg.conf
- from Fedora
installation:
- Section "Monitor"
Identifier "Generic Monitor"
HorizSync 20-90
VertRefresh 60-100
ModeLine "1280x768" 111.69
1280 1336 1616 1728 768 770 782 808
Option "DPMS"
EndSection
- add to grub: vga=0x317
video=i810fb:vram:2,xres:1024,yres=768,bpp:24,
hsync1:30,hsync2:49,vsync1:40,vsync2:70,accel,mtrr
- glxgears now runs at 907.000 FPS, as advertized
Note that these two hacks aren't entirely successful
together. After issuing "915resolution 45 1280 768 24", starting X11
with the beta i810 driver messes up the framebuffer, which up to that
point looks fine, so that a second (if you use 915resolution 45 1280
768, which implies 915resolution 45 1280 768 16) or even a third (if
you
use 915resolution 45 1280 768 24, which seems to give better results)
duplicated column of text shows up on the right edge of the console. On
the other hand, the regular console is not messed up, so just boot
without a framebuffer. This is likely simply a problem with the beta
i810 xorg driver we're using and will be fixed in a subsequent
release.
Note further that "915resolution 45 1280 768 24" gets you the
24 bits per pixel resolution, which the monitor appears to support and
which works fine with dri (according to the xorg log) -- so it's
clearly preferred. Does this give you more colors or sharper images or
both?
I added the 915resolution command to /etc/init.d/kdm rather
than to
/etc/init.d/bootmisc for two reasons. One is that it messes up the
framebuffer console; this way you have the option of not starting kdm
at
boot and getting a clean framebuffer. The other is related to the fact
that the 915resolution command must be rerun after hibernation. It is
in
the /etc/acpi/resume.sh script (for hibernations from KDE), and also in
the dvale script (for hibernation from console), but conditionally on
KDM running. This allows a faster and cleaner resume to console.
Finally, there's no need to use the HorizSync 20-90 and
VertRefresh
60-100 values; let DDC take care of this, as the correct values work
fine.
Configuration
- touchpad -- used the configuration from the German
guide
- CF-Slot -- added fstab line as shown in the German
guide
- Set keyboard to inspiron in xorg.conf -- see Gentoo guide
- Option
"XkbModel" "inspiron"
- The touchpad may be too touchy -- see Martin's guide
- gpm got the same configuration as sigillo to paste (console)
Bluetooth
- The built-in bluetooth is at hci0 00:10:C6:63:9A:B4
- I changed the settings in /etc/bluetooth/hcid.conf to those
on sigillo
- The Linksys USB Bluetooth adapter has a range of a mile
- I set up a connection to sigillo; works great -- 50 to
70kb/s
- The internal Toshiba bluetooth device is just as fast, but
its range is a few meters
- Works very reliably with custom scripts --
o modules must
be unloaded every time the device is turned off and on again
o bluez-utils
must be started twice to establish a connection
o the pand
command must be defined in /etc/default/bluez-utils
- Connections may get established if you give the pand
command manually, but it's erratic
Scanner
Tord's scanner shows up on lsusb:
Bus 001 Device 002: ID 03f0:2205 Hewlett-Packard ScanJet 3500c
The HP ScanJet 3500c (ID 03F0-2205) has a RealTek RTS8801C2-6
ASIC and is being reverse engineered here:
HP Scanjet 3500 series scanners
RTS8801
Mailing list
However, it's still not supported.
The closest driver is the HP4470C Sane driver, which uses the surely similar RealTek RTS8891 chip -- but even this driver is alpha.
|
|