Author Topic: Post Install Tweeks  (Read 19889 times)

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Post Install Tweeks
« on: June 04, 2009, 01:43:29 pm »
Having installed ZUBUNTU for the first time, here are some bits that people might find of use

after loging in the first time run

ts_calibrate

to calibrate your touch screen

run killall tskeys

to get some free memory

ensure dhcp is running properly by changing the 102 and 103 entries for dhcp in /etc/passwd to 0

get your wifi / network running by looking on the forums

once you have internet connectivity, install synaptic so you can find packages with

apt-get install synaptic

now you're ready to rock
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

RX Shorty

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • http://www.lindoboom.nl
Post Install Tweeks
« Reply #1 on: June 19, 2009, 09:45:44 pm »
Nice
Thanks, I am going to try Zubuntu tonight.
Owning a Zaurus SL-C860, SL-C3200, SL-6000, Netwalker
Got the GPD Win!

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #2 on: July 09, 2009, 01:58:31 pm »
at my c1000 its not nessesary to kill tskeys
its sufficient to edit /etc/zaurusd/mach-config-vars and put TSKEYS_DEVICE=/dev/input/event2 instead default value

another must do thing is:
alsamixer:
set headphone, pcm, speaker  to the top
unmute all left mixers (four of them) and right mixer (leave other right mixers muted)
finally enable speaker function (third control from end)

This gives clear sound through speaker and working headphones in stereo.

bass, treble, 3d set as you like. Play a bit with all of this deemphasis and filter thing if you have audiohile ear.

if your usb device does not work try dmesg and look if there is something like this:
usb 1-2: new full speed USB device using pxa27x-ohci and address 6
usb 1-2: rejected 1 configuration due to insufficient available bus power
usb 1-2: no configuration chosen from 1 choice

if you encounter problems with usb power then here is solution: https://www.oesf.org/forum/index.php?showto...mp;hl=usb+power

tweak a bit zaurus leds:
echo mmc0 > /sys/class/leds/spitz\:green\:mail/trigger
echo ide-disk > /sys/class/leds/spitz\:amber\:charge/trigger

if you like put it in /etc/init.d/zaurusd right after echo "starting zaurusd"
this gives you blinking leds while accessing cards.

Make some swap, 64MB is quite enough for pda use, if you intend to use zaurus with zubuntu as a little laptop it may be neccessary to put some more swap.

install lynx, dillo, mpg321 (uses a lot less cpu), fbreader, consider installing mpd

after that zubuntu is very fine. I would even say it may be a new cacko.

Great job for its creators and maintainers! I dont miss cacko

In case you encounter "Unresolved Inheritance Operation" do as https://www.oesf.org/forum/index.php?showtopic=26703 thread says.
xfig, xpat2, xmpuzles are affected.
« Last Edit: July 10, 2009, 03:14:37 am by ptoki »

brontoZaurus

  • Newbie
  • *
  • Posts: 48
    • View Profile
Post Install Tweeks
« Reply #3 on: July 23, 2009, 07:35:40 am »
Quote from: craigtyson
Having installed ZUBUNTU for the first time, here are some bits that people might find of use

after loging in the first time run

ts_calibrate

to calibrate your touch screen

run killall tskeys

to get some free memory

ensure dhcp is running properly by changing the 102 and 103 entries for dhcp in /etc/passwd to 0

get your wifi / network running by looking on the forums

once you have internet connectivity, install synaptic so you can find packages with

apt-get install synaptic

now you're ready to rock
i cant run synaptic in Zubuntu 8.04, it installs but when i click it in the menu, nothing happens...
someone who can throw some light...

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Post Install Tweeks
« Reply #4 on: July 24, 2009, 10:44:32 am »
Quote from: brontoZaurus
Quote from: craigtyson
Having installed ZUBUNTU for the first time, here are some bits that people might find of use

after loging in the first time run

ts_calibrate

to calibrate your touch screen

run killall tskeys

to get some free memory

ensure dhcp is running properly by changing the 102 and 103 entries for dhcp in /etc/passwd to 0

get your wifi / network running by looking on the forums

once you have internet connectivity, install synaptic so you can find packages with

apt-get install synaptic

now you're ready to rock
i cant run synaptic in Zubuntu 8.04, it installs but when i click it in the menu, nothing happens...
someone who can throw some light...

What do you get from a command line when you type in synaptic?

C
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

brontoZaurus

  • Newbie
  • *
  • Posts: 48
    • View Profile
Post Install Tweeks
« Reply #5 on: July 27, 2009, 03:49:50 am »
oh!
yes from shell it works, but from the menu icon doesn´t.
thanks anyway!!!  

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Post Install Tweeks
« Reply #6 on: July 27, 2009, 06:47:44 am »
Quote from: brontoZaurus
oh!
yes from shell it works, but from the menu icon doesn´t.
thanks anyway!!!  

Some apps seem to run gksudo {command} in their menu entry

I know WIFI Radar does

Try editing synaptic.desktop and take out the gksudo

C
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

brontoZaurus

  • Newbie
  • *
  • Posts: 48
    • View Profile
Post Install Tweeks
« Reply #7 on: July 27, 2009, 08:02:57 am »
ok but where is located that file¿?
thanks in advance.

Edited:

/usr/share/applications/synaptic.desktop

Ok no problem located and removed de "gksu" word and all is ok now.
thanks man!
« Last Edit: July 27, 2009, 08:10:57 am by brontoZaurus »

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #8 on: July 30, 2009, 12:00:10 pm »
Another chunk of post install tweaks.

Put
Code: [Select]
#middle mouse click
"xte 'mouseclick 2'"
    Shift + b:1
in /root/.xbindkeysrc to have middle click with shift key (right click with Control is already there). Finally it is possible to use xfig  without mouse.

put
Code: [Select]
xhost + in .xinitrc to have screen flipping working (xrandr from zaurus-hinge script cant connect to X and thus not working).

Edit /etc/zaurusd/zaurus-hinge and put there display-brightness.sh off just after #echo "sleeping"
and display-brightness.sh on after #echo "lanscape".
Change /bin/display-brightness.sh script

put
Code: [Select]
elif [ "$1" = "off" ]; then
    if [ $BRIGHTNESS -ne 0 ];then
    echo "$BRIGHTNESS" >/tmp/backlight
    echo 0 > $BRIGHTNESS_FILE
    fi
elif [ "$1" = "on" ]; then
    cat /tmp/backlight > $BRIGHTNESS_FILE
    rm /tmp/backlight
just after "fi" in "down" section.

This will give you turned off screen when lid is closed (but screen will be lit while in portrait mode)

change
Code: [Select]
STEP=5
MAX_BRIGHTNESS=47
MIN_BRIGHTNESS=0
in this script according to /sys/class/backlight/$DRIVER/max_brightness
or just uncomment
Code: [Select]
#MAX_BRIGHTNESS=`cat /sys/class/backlight/$DRIVER/max_brightness` line (I suppose someone put there a artificial limit to save batteries  or it is a legacy from other zaurus model) In c1000 max is 47.

put
Code: [Select]
/root/repeatoff in /root/.xinitrc and put there a repeat-rate-workaround:
Code: [Select]
#!/bin/sh
xset r on
for k in 10 11 12 13 14 15 16 17 18 19 24 25 26 27 28 29 30 31 32 33 38 39 40 41 42 43 44 45 46 52 53 54 55 56 57 58 20 59 60 70
do
xset -r "$k"
done
It is a bit modified version of solution provided by gojira here https://www.oesf.org/forum/index.php?showtopic=25165. I added escape key to non repeated keys (useful in mc)

All files modified are attached.

Edit: did minor changes, attachments updated.
« Last Edit: July 31, 2009, 01:13:55 am by ptoki »

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #9 on: August 06, 2009, 01:30:11 am »
To make irda work:
Ensure that modules irda, ircomm_tty, ircomm, pxaficp_ir are loaded.
install irda-utils (so irattach is available)
cat /proc/net/irda/discovery will tell you if any device is found by irda.
irattach irda0 -s will make irda working.

Then:
irxfer or ircp -r will make beaming to zaurus working
To beam files from zaurus use irobex_palm3 ircp doezt work with for example nokia e61.

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #10 on: September 11, 2009, 04:18:06 am »
Another batch of tweaks:

Do not use LXDE, it has a bug (not sure which component) causing high cpu usage after resume (probably something with changing date/time too rapidly) and it doesnt have fill-all-space behaviour.

Install aosd_cat as osd functionality.
in .xbindkeysrc put similar configuration to display-backlight for volume controls (amixer sput PCM ...)
and for checking battery.
Add some osd to those scripts to have nice OSD while changing volume, brightness and similar. It is independent from WM-s.
Aosd_cat is very early version but it works quite nicely (lacks bar and multi line functionality)

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Post Install Tweeks
« Reply #11 on: September 11, 2009, 05:56:20 am »
Quote from: ptoki
Another batch of tweaks:

Do not use LXDE, it has a bug (not sure which component) causing high cpu usage after resume (probably something with changing date/time too rapidly) and it doesnt have fill-all-space behaviour.

Install aosd_cat as osd functionality.
in .xbindkeysrc put similar configuration to display-backlight for volume controls (amixer sput PCM ...)
and for checking battery.
Add some osd to those scripts to have nice OSD while changing volume, brightness and similar. It is independent from WM-s.
Aosd_cat is very early version but it works quite nicely (lacks bar and multi line functionality)

In my experience changing the date once the gui is up causes MAXout of theCPU and eventual lockup.  The only way I've found round this is to set the date at first login at the command line.
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

RGRICH

  • Newbie
  • *
  • Posts: 16
    • View Profile
Post Install Tweeks
« Reply #12 on: December 05, 2009, 02:35:34 pm »
Quote from: ptoki
at my c1000 its not nessesary to kill tskeys
its sufficient to edit /etc/zaurusd/mach-config-vars and put TSKEYS_DEVICE=/dev/input/event2 instead default value

another must do thing is:
alsamixer:
set headphone, pcm, speaker  to the top
unmute all left mixers (four of them) and right mixer (leave other right mixers muted)
finally enable speaker function (third control from end)

This gives clear sound through speaker and working headphones in stereo.

bass, treble, 3d set as you like. Play a bit with all of this deemphasis and filter thing if you have audiohile ear.

if your usb device does not work try dmesg and look if there is something like this:
usb 1-2: new full speed USB device using pxa27x-ohci and address 6
usb 1-2: rejected 1 configuration due to insufficient available bus power
usb 1-2: no configuration chosen from 1 choice

if you encounter problems with usb power then here is solution: https://www.oesf.org/forum/index.php?showto...mp;hl=usb+power

tweak a bit zaurus leds:
echo mmc0 > /sys/class/leds/spitz\:green\:mail/trigger
echo ide-disk > /sys/class/leds/spitz\:amber\:charge/trigger

if you like put it in /etc/init.d/zaurusd right after echo "starting zaurusd"
this gives you blinking leds while accessing cards.

Make some swap, 64MB is quite enough for pda use, if you intend to use zaurus with zubuntu as a little laptop it may be neccessary to put some more swap.

install lynx, dillo, mpg321 (uses a lot less cpu), fbreader, consider installing mpd

after that zubuntu is very fine. I would even say it may be a new cacko.

Great job for its creators and maintainers! I dont miss cacko

In case you encounter "Unresolved Inheritance Operation" do as https://www.oesf.org/forum/index.php?showtopic=26703 thread says.
xfig, xpat2, xmpuzles are affected.
I'm having the power problem with a usb ethernet dongle. I tried the workaround describe here by setting the address in the bConfigurationValue but that did not seem to make any difference. Is there something else to try?

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #13 on: December 22, 2009, 05:08:13 am »
Quote from: RGRICH
Quote from: ptoki
at my c1000 its not nessesary to kill tskeys

if your usb device does not work try dmesg and look if there is something like this:
usb 1-2: new full speed USB device using pxa27x-ohci and address 6
usb 1-2: rejected 1 configuration due to insufficient available bus power
usb 1-2: no configuration chosen from 1 choice

if you encounter problems with usb power then here is solution: https://www.oesf.org/forum/index.php?showto...mp;hl=usb+power
I'm having the power problem with a usb ethernet dongle. I tried the workaround describe here by setting the address in the bConfigurationValue but that did not seem to make any difference. Is there something else to try?
What dmesg says after setting this value?
are you sure that all needed modules are loaded?
You can try powered hub or make a hardware hack (changing pullup resistor in zaurus - quite difficult for amateur).
Or buying another ethernet dongle.

ptoki

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Post Install Tweeks
« Reply #14 on: February 15, 2010, 05:43:35 am »
Next thing to do is to make dual boot with cacko.
Zubuntu does not handle hardware acceleration for video (or I cant do it properly).
Cacko is fine for old software, video, some games. Iqnotes are missing for zubuntu.

To have dual boot working do:
Use other linux box to do this:
Copy all files from SD-card to somewhere else. Use mc and do not copy /media or /mnt (there are some links and that can make troubles  )

Make backup: dd if=/dev/mmcblk of=/tmp/backup.card bs=1M

Then make cfdisk and partition card to two or more partitions.
One for cacko kernel (small 10-16mb is enough) and one for zubuntu (rest of sd-card).
Make ext2 on both partitions (mkfs.ext2).
Put boot dir on both partitions (mkdir boot).

On small partition put kernel image, command-line and description.
On big partition put files copied from sd-card at the beginning.

And voila. My c1000 boots to zubuntu or to cacko.
Some helpful threads (source of whole knowledge about this):
https://www.oesf.org/forum/index.php?showtopic=26640
https://www.oesf.org/forum/index.php?showtopic=26548


One more thing:
Cacko does not like my sd-card which doesnt have a partition. I tried to make dual booting on two cards(to avoid copying files back and forth) but cacko kernel was filling dmesg log with messages about "unreadable something" (I dont remember exactly). After making partition all is fine.
But anyway I found new target for my mobile life: sharp netwalkre pc z1