Author Topic: Htc Universal  (Read 699050 times)

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #210 on: May 05, 2008, 04:29:35 am »
Please help-me me quikly  
I follow al instructions from http://sumoudou.org/ to installing Debian on Universal
I follow step to step al instructions from prepare SD card to install X
But here one problem stoped me
This is the code:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# aptitude install xdm
# cd /usr/bin
# mv X X.bak
# ln -s Xfbdev X
# chmod 2755 Xfbdev
# echo "xlogin*geometry: 520x400+60+40" >> /etc/X11/xdm/Xresources
# echo "xrandr -o right" >> /etc/X11/xdm/Xsetup
# mv /etc/X11/xdm/Xsession /etc/X11/xdm/Xsession.bak
# sed 's/. /etc/X11/Xsession/export/TSLIB_TSDEVICE=/dev/input/event0 . /etc/X11/Xsession/' < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession
# mv /etc/X11/xdm/Xservers /etc/X11/xdm/Xservers.bak
# sed 's/:0 local /usr/bin/X :0 vt7 -nolisten tcp/:0 local /usr/bin/X :0 vt7 -dpi 100 -nolisten tcp -fp /usr/share/fonts/X11/misc/' < /etc/X11/xdm/Xservers.bak > /etc/X11/xdm/Xservers[/div]

Evrything works fine but here is the problem:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed 's/. /etc/X11/Xsession/export/TSLIB_TSDEVICE=/dev/input/event0 . /etc/X11/Xsession/' < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession[/div]
When i wrote this i give some errors
Invalid 's`  in char 9 Is everythink OK whith this code?
I understand.... The file from /etc/X11/xdm/Xsession is renamed in /etc/X11/xdm/Xservers.bak for backup to white  TSLIB_TSDEVICE=/dev/input/event0 inside after that is renamed < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession
I make other combinations
 # sed 's/
 # 's/
 # sed 's/. /etc/X11/Xsession/export/TSLIB_TSDEVICE=/dev/input/event0 . /etc/X11/Xsession/'
and many many others combinations and from one time command ts_calibrate whose work and ICEWM starts whith touchscreen. But i don`t now haw i made After reset my touchscreen not work  
Can anybody help me whith this code? to work the touchscreen?
I repeat procedure from begin whith
mke2fs /dev/sda1, aptitude and apt-get update from http://ftp.cz.debian.org/debian/ sid main etc etc etc

I wait some explanations to this  
« Last Edit: May 05, 2008, 04:30:26 am by wolfy »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #211 on: May 05, 2008, 04:55:16 am »
Quote from: wolfy
Evrything works fine but here is the problem:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed 's/. /etc/X11/Xsession/export/TSLIB_TSDEVICE=/dev/input/event0 . /etc/X11/Xsession/' < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession[/div]
This should be:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed 's/. \/etc\/X11\/Xsession/export\/TSLIB_TSDEVICE=\/dev\/input\/event0\n. \/etc\/X11\/Xsession/' < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession[/div]
and the following sed should read
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed 's/:0 local \/usr\/bin\/X :0 vt7 -nolisten tcp/:0 local \/usr\/bin\/X :0 vt7 -dpi 100 -nolisten tcp -fp \/usr\/share\/fonts\/X11\/misc/' < /etc/X11/xdm/Xservers.bak > /etc/X11/xdm/Xservers[/div]
There's formatting issues with the slashes on my site, need to sort that out. Sorry about the confusion.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #212 on: May 05, 2008, 05:07:42 am »
Quote
There's formatting issues with the slashes on my site, need to sort that out. Sorry about the confusion.
OK thank`s i whill try whith that backslashers  
Now a repeat procedure from begining
Please tellme
xserver-titchy-0.1.deb is or not necesary?
I see whith titcky instaled ICE WM starts in Portrait mode
But whithout titcky ICE WM starts in landscape mode and this in more good

webdork

  • Newbie
  • *
  • Posts: 16
    • View Profile
Htc Universal
« Reply #213 on: May 05, 2008, 06:32:09 am »
Quote from: wolfy
Quote
There's formatting issues with the slashes on my site, need to sort that out. Sorry about the confusion.
OK thank`s i whill try whith that backslashers  
Now a repeat procedure from begining
Please tellme
xserver-titchy-0.1.deb is or not necesary?
I see whith titcky instaled ICE WM starts in Portrait mode
But whithout titcky ICE WM starts in landscape mode and this in more good

So when you remove the xserver-titchy.deb file icewm actually works in landscape mode?

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #214 on: May 05, 2008, 06:51:34 am »
Quote from: webdork
So when you remove the xserver-titchy.deb file icewm actually works in landscape mode?

No Not works, i try this

Now i have another problem whith #ts_calibrate
Not work

I put all this code modified whith backslashes.....
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# aptitude install xdm
# cd /usr/bin
# mv X X.bak
# ln -s Xfbdev X
# chmod 2755 Xfbdev
# echo "xlogin*geometry: 520x400+60+40" >> /etc/X11/xdm/Xresources
# echo "xrandr -o right" >> /etc/X11/xdm/Xsetup
# mv /etc/X11/xdm/Xsession /etc/X11/xdm/Xsession.bak
# sed 's/. \/etc\/X11\/Xsession/export\/TSLIB_TSDEVICE=\/dev\/input\/event0\n. \/etc\/X11\/Xsession/' < /etc/X11/xdm/Xsession.bak > /etc/X11/xdm/Xsession
# mv /etc/X11/xdm/Xservers /etc/X11/xdm/Xservers.bak
# sed 's/:0 local \/usr\/bin\/X :0 vt7 -nolisten tcp/:0 local \/usr\/bin\/X :0 vt7 -dpi 100 -nolisten tcp -fp \/usr\/share\/fonts\/X11\/misc/' < /etc/X11/xdm/Xservers.bak > /etc/X11/xdm/Xservers[/div]

Works all whitout errors

After that i put this:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# mv /etc/rc2.d/S99xdm /etc/rc2.d/K01xdm
# mv /etc/rc3.d/S99xdm /etc/rc3.d/K01xdm
# mv /etc/rc4.d/S99xdm /etc/rc4.d/K01xdm
# mv /etc/rc5.d/S99xdm /etc/rc5.d/K01xdm[/div]

Work No errors

I make:
#logout

I loged again as root but
#ts_calibrate
Give me this
ts_open: No such file or directory

I tryed to work all fine... but isn`t

What can i do???
« Last Edit: May 05, 2008, 09:03:28 am by wolfy »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #215 on: May 05, 2008, 08:13:01 am »
Quote from: wolfy
I make:
#logout

I loged again as root but
#ts_calibrate
Give me this
ts_open: No such file or directory

I tryed to work all fine... but isn`t
No problems, man, we'll solve it.

What's the feedback of the following commands:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# cat /etc/ts.conf
# echo $TSLIB_TSDEVICE
# cat /etc/X11/xdm/Xsession
# cat /etc/profile.d/tslib.sh
[/div]
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #216 on: May 05, 2008, 08:34:35 am »
Quote from: ShiroiKuma
Quote from: wolfy
I make:
#logout

I loged again as root but
#ts_calibrate
Give me this
ts_open: No such file or directory

I tryed to work all fine... but isn`t
No problems, man, we'll solve it.

What's the feedback of the following commands:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# cat /etc/ts.conf
# echo $TSLIB_TSDEVICE
# cat /etc/X11/xdm/Xsession
# cat /etc/profile.d/tslib.sh
[/div]

No work
#ts_calibrate
ts_open: No such file or directory

When i wrote TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate give me this:
xres = 480, yres = 640
ts_read: invalid argument

I give it up

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #217 on: May 05, 2008, 08:43:04 am »
Run this and tell me what you see:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# cat /etc/ts.conf
# echo $TSLIB_TSDEVICE
# cat /etc/X11/xdm/Xsession
# cat /etc/profile.d/tslib.sh
[/div]
« Last Edit: May 05, 2008, 08:43:29 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #218 on: May 05, 2008, 08:44:02 am »
After comand #cat /etc/profile.d/tslib.sh is display this:
TSLIB_TSDEVICE=/dev/input/ts0

export TSLIB_TSDEVICE

After cat /etc/ts.conf this:
# Uncomment if you wish to use the linux input layer event interface
module_raw input grab_events=0

# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie

# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi

# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00

# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600

# Uncomment if you're using a Hitachi Webpad
# module_raw mk712

# Uncomment if you're using an IBM Arctic II
# module_raw arctic2

module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

after cat /etc/X11/xdm/Xsession:
export/TSLIB_TSDEVICE=/dev/input/event0
. /etc/X11/Xsession

and after echo $TSLIB_TSDEVICE:
/dev/input/event0

     
« Last Edit: May 05, 2008, 09:06:17 am by wolfy »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #219 on: May 05, 2008, 09:08:55 am »
Run this:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed -i 's/TSLIB_TSDEVICE=\/dev\/input\/ts0/TSLIB_TSDEVICE=\/dev\/input\/event0/' /etc/profile.d/tslib.sh
# sed -i 's/export\/TSLIB_TSDEVICE/export TSLIB_TSDEVICE/' /etc/X11/xdm/Xsession
[/div]
Reboot.

After reboot issue echo $TSLIB_DEVICE as the first command, it should return /dev/input/event0.

Now ts_calibrate should work.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

wolfy

  • Newbie
  • *
  • Posts: 34
    • View Profile
Htc Universal
« Reply #220 on: May 05, 2008, 10:42:55 am »
Quote from: ShiroiKuma
Run this:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed -i 's/TSLIB_TSDEVICE=\/dev\/input\/ts0/TSLIB_TSDEVICE=\/dev\/input\/event0/' /etc/profile.d/tslib.sh
# sed -i 's/export\/TSLIB_TSDEVICE/export TSLIB_TSDEVICE/' /etc/X11/xdm/Xsession
[/div]
Reboot.

After reboot issue echo $TSLIB_DEVICE as the first command, it should return /dev/input/event0.

Now ts_calibrate should work.

Not work

After reboot this comand echo $TSLIB_DEVICE give me this /dev/input/ts0    #ts_calibrate steel not work



Thx man, Thax all
For me is finish whith debian
Maibe in the future whill be one ICE WM or other WM easy to install, GPE install work fine but isn`t like IceWm

I keep my SD card formated whith ext2 for next time

 

p3t3r

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #221 on: May 05, 2008, 01:18:50 pm »
Quote from: wolfy
Quote from: ShiroiKuma
Run this:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# sed -i 's/TSLIB_TSDEVICE=\/dev\/input\/ts0/TSLIB_TSDEVICE=\/dev\/input\/event0/' /etc/profile.d/tslib.sh
# sed -i 's/export\/TSLIB_TSDEVICE/export TSLIB_TSDEVICE/' /etc/X11/xdm/Xsession
[/div]
Reboot.

After reboot issue echo $TSLIB_DEVICE as the first command, it should return /dev/input/event0.

Now ts_calibrate should work.

Not work

After reboot this comand echo $TSLIB_DEVICE give me this /dev/input/ts0    #ts_calibrate steel not work



Thx man, Thax all
For me is finish whith debian
Maibe in the future whill be one ICE WM or other WM easy to install, GPE install work fine but isn`t like IceWm

I keep my SD card formated whith ext2 for next time

 

Strange - for me datathiefs instructions regarding X worked perfectly... I use(d) GPE, IceWM and now JWM without errors.
Just have one more try, maybe it'll work.

Cagnulein

  • Newbie
  • *
  • Posts: 9
    • View Profile
Htc Universal
« Reply #222 on: May 06, 2008, 01:08:00 am »
some questions:
1) does it possible to increase the duration of vibro for a call? (no difference between sms and calls)
2) blink the right led when you've an unread items? i've seen the /sys/*led* but i don't know how to use them
3) does it possible to activate the loudspeaker?

i'm so close to 3 days of uptime to my uni: i'm so proud

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #223 on: May 06, 2008, 03:32:23 am »
Quote from: p3t3r
Strange - for me datathiefs instructions regarding X worked perfectly... I use(d) GPE, IceWM and now JWM without errors.
Just have one more try, maybe it'll work.
I don't think they work perfectly, because installing xserver-titchy indeed lets you run X, however you can only log in as root, which is a significant flaw I think. I haven't been able to find a way to log in as a regular user using this method.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #224 on: May 06, 2008, 04:46:07 am »
Quote from: Cagnulein
some questions:
1) does it possible to increase the duration of vibro for a call? (no difference between sms and calls)
Look at /etc/htcunid/event.d/example - you'll see the commands used to turn on LEDs and vibration by setting /sys/class/leds/*/brightness.

Quote
2) blink the right led when you've an unread items? i've seen the /sys/*led* but i don't know how to use them
See above.

Quote
3) does it possible to activate the loudspeaker?
I haven't worked out how to do this yet.
« Last Edit: May 06, 2008, 05:16:22 am by datathief »