OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Debian => Topic started by: datathief on April 03, 2008, 07:03:51 pm

Title: Htc Universal
Post by: datathief on April 03, 2008, 07:03:51 pm
I've been using an HTC Universal (http://en.wikipedia.org/wiki/HTC_Universal) for a month now, and I've all but forgotten about my poor Zaurus.  

Pros:Cons:Does anyone else here have one of these?  Would there be any interest in creating a Debian "distro" for it?

Update: See here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile) for progress so far.

Update 2: I've uploaded a Debian package to install the keymap, power management, sound and phone functions here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Installing_Debian).
Title: Htc Universal
Post by: ZDevil on April 03, 2008, 07:38:19 pm
Wow. That's sounds really cool. Any pointer to setting it up?
Can you get phone functionality when running Debian?
Title: Htc Universal
Post by: datathief on April 04, 2008, 06:53:47 am
Quote from: ZDevil
Wow. That's sounds really cool. Any pointer to setting it up?
Can you get phone functionality when running Debian?

For a basic install:The HaRET config file, default.txt:
Code: [Select]
set kernel "zImage"
set mtype "855"
set cmdline "root=/dev/mmcblk0p1 rw console=tty0 rootdelay=5 fbcon=rotate:1"
boot2

This was enough to get Debian to boot.  USB networking works.  Wifi works best if you set the speed to 1Mbps using iwconfig (I have to do this after associating with the AP).  The keyboard goes a bit weird after suspending (there's a fix here (http://forum.xda-developers.com/showthread.php?t=251584&page=196)).

The modem accepts AT commands over one serial port and exchanges data with pppd over a different serial port, so GPRS is tricky.  I've written a daemon to handle this.  In theory, it should be easy to add the ability to make and receive voice calls and SMS, but the interface needs some thought.  Probably best to keep it simple  -  a command-line tool to dial, pick up, hang up and send SMS, and an interface like /etc/apm/ to handle events (incoming call, SMS).  That should be enough for me to use it as my only phone.
Title: Htc Universal
Post by: ShiroiKuma on April 10, 2008, 04:24:01 pm
Quote from: datathief
The modem accepts AT commands over one serial port and exchanges data with pppd over a different serial port, so GPRS is tricky.  I've written a daemon to handle this.  In theory, it should be easy to add the ability to make and receive voice calls and SMS, but the interface needs some thought.  Probably best to keep it simple  -  a command-line tool to dial, pick up, hang up and send SMS, and an interface like /etc/apm/ to handle events (incoming call, SMS).  That should be enough for me to use it as my only phone.
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?

BTW the Universal has UMTS, as you mention in your fist post?

Can you workingly use GPRS, i.e. connect to the web easily?
Title: Htc Universal
Post by: speculatrix on April 10, 2008, 05:02:44 pm
very interesting to hear of progress on the HTC uni. it seemed so promising when started, shame it's only reached ?90%?

maybe with google android coming out on HTC devices, it will be possible that HTC will provide linux drivers for their hardware?
Title: Htc Universal
Post by: ArchiMark on April 10, 2008, 10:03:53 pm
Sounds interesting, datathief.....

How is the keyboard and display?

Also, is there handwriting recognition app available if you run linux?

Keep us posted....

 
Title: Htc Universal
Post by: scheck.r on April 11, 2008, 05:53:09 am
Quote from: ArchiMark
Sounds interesting, datathief.....

How is the keyboard and display?

Also, is there handwriting recognition app available if you run linux?

Keep us posted....

 
Yes , there is cellwriter (http://www.risujin.org/cellwriter/)
Title: Htc Universal
Post by: datathief on April 14, 2008, 10:09:16 am
Quote from: ArchiMark
How is the keyboard and display?
The keyboard is slightly noisy ("clicky"), but perfectly usable.  The screen isn't quite as bright as my Zaurus, but is otherwise very similar (same size, resolution, etc.).  I'm running screen, mutt and finch, but X works fine.  I haven't tried cellwriter for handwriting recognition, but it's in the Debian repos.
Title: Htc Universal
Post by: datathief on April 14, 2008, 10:15:05 am
Quote from: ShiroiKuma
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?
Not yet.  I almost have basic SMS send/receive working.  Once I can make and receive calls too, the Universal will be my primary phone.

Quote
BTW the Universal has UMTS, as you mention in your fist post?
Yes.  I'm getting 384kbit/s in good conditions.

Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
Title: Htc Universal
Post by: ShiroiKuma on April 14, 2008, 05:34:50 pm
Wow, I think I'm gonna go buy this phone...

Do you have any sources of info, or is your main one http://forum.xda-developers.com/showthread...178#post1680178 (http://forum.xda-developers.com/showthread.php?p=1680178#post1680178)

Quote from: datathief
Quote from: ShiroiKuma
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?
Not yet.  I almost have basic SMS send/receive working.  Once I can make and receive calls too, the Universal will be my primary phone.

Checking at http://www.handhelds.org/moin/moin.cgi/UniversalStatus (http://www.handhelds.org/moin/moin.cgi/UniversalStatus) specifically with GPE/x11 it says phone calls are working. Yet it says SMS isn't. Can you give any pointers on what you've done to get SMS functionality, and what "almost" means in terms of SMS functionality?

Quote
Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
Great, how soon do you expect to be able to publish this?
Title: Htc Universal
Post by: datathief on April 14, 2008, 07:18:17 pm
Quote from: ShiroiKuma
Checking at http://www.handhelds.org/moin/moin.cgi/UniversalStatus (http://www.handhelds.org/moin/moin.cgi/UniversalStatus) specifically with GPE/x11 it says phone calls are working. Yet it says SMS isn't. Can you give any pointers on what you've done to get SMS functionality, and what "almost" means in terms of SMS functionality?
I've successfully sent and received SMS messages, and made and received calls, using standard AT commands.  It all works, it's just not integrated with GPE etc.

I'm not interested in GPE, QTopia or OpenMoko, so I'm writing a daemon and command-line tools to handle GPRS, calls and SMS (GPRS and incoming SMS are working already).  I should have something usable in the next few days, though it will probably still be buggy.
Title: Htc Universal
Post by: ShiroiKuma on April 15, 2008, 04:55:17 am
Quote from: datathief
I'm not interested in GPE, QTopia or OpenMoko, so I'm writing a daemon and command-line tools to handle GPRS, calls and SMS (GPRS and incoming SMS are working already).  I should have something usable in the next few days, though it will probably still be buggy.
OK, how are you gonna integrate it into the phone interface? Hardware keys? Or do you assume, you'll accept calls etc via shell scripts? Or do you have a simple graphical frontend?

Referring further to your first post, I sorta assumed you were using GPE or sorts... How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?

Which WM are you using, since you are not inclined the GPE way? IceWM?

Here's a thought, if you'd go the hardware keys phone functionality integration, how about ratpoison? Is this too radical for a phone?
Title: Htc Universal
Post by: datathief on April 15, 2008, 07:07:16 am
Quote from: ShiroiKuma
OK, how are you gonna integrate it into the phone interface? Hardware keys? Or do you assume, you'll accept calls etc via shell scripts? Or do you have a simple graphical frontend?
In X, I can imagine using zenity or similar.  Use xmodmap to map the hardware keys to Enter and Escape.  Pop up a dialog (while vibrating and/or playing a ringtone) for an incoming call.  Enter accepts the call, Escape rejects it.

I don't intend to focus on the user interface.  All I need is a "backend" that I can integrate into my own environment, however I want.  

Quote
How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?
See my second post in this thread.

Quote
Which WM are you using, since you are not inclined the GPE way? IceWM?
I'm not using X at all.
Title: Htc Universal
Post by: ShiroiKuma on April 15, 2008, 08:59:18 am
Quote from: datathief
I don't intend to focus on the user interface.  All I need is a "backend" that I can integrate into my own environment, however I want.
Sounds reasonable.
Quote
Quote
How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?
See my second post in this thread.
Doh... )

Is there a difference between using the Opie exe or the cabs from other directories, i.e. PhoneGPE, whatever that is, etc.?

Quote
I'm not using X at all.
Why do you not use X at all? Are you using Opie, or plain console? For performance reasons, or what are the considerations?
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 03:48:28 am
Quote from: datathief
Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
I'm getting the phone today. Can you publish even a work in progress of this daemon - so that one may get started utilizing the GPRS in debian? Also maybe the WIP of the call/sms daemon?
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 04:06:33 am
Cool! I am also going to receive it from ebay soon! Now we have a nice debian/zaurus-alternative.
This is gonna be my third handheld running debian eabi... am i mad?
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 05:05:25 am
 
You're not mad man, it's the way to go.

I've basically given up on the zaurus, as I've been tired of having a phone and a Z around for everything. But this Universal is very close to the ideal convergence gadget it seems. I've waited long for GNU/Linux to be workable on a mobile phone and this thread has given me the impetus.

Now if we can really get the GPRS and phone/sms to be able to connect from the Universal to the web and do hacking, it'll be good.

From http://forum.xda-developers.com/showthread.php?t=251584 (http://forum.xda-developers.com/showthread.php?t=251584) it seems GNU/Linux on the Universal has matured to the usable stage as also a phone, but I didn't fancy using Qtopia, as I feel I need X, but datathief's confirmation that he's got it useable has gotten me started.

Let's see how far we can get going with this. BTW, I'm planning to use your clean configured rootfs tarball for the debian bootstrap on the Universal, but I anticipate problems could maybe occur with it, don't know...

What's your approach gonna be? Use it too, or start from scrach?
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 05:08:27 am
If there is enough interest, we can ask for a new HTC Universal subforum?  
Title: Htc Universal
Post by: datathief on April 16, 2008, 05:26:39 am
Quote from: ShiroiKuma
Quote from: datathief
Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
I'm getting the phone today. Can you publish even a work in progress of this daemon - so that one may get started utilizing the GPRS in debian? Also maybe the WIP of the call/sms daemon?
I've got calls and SMS working (no caller ID yet, but my Uni is now my primary phone).  I'll be putting it on the web today  -  watch this space (http://wiki.neilandtheresa.co.uk/Titchy_Mobile)
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 05:33:33 am
Just curious: How long does the battery last when the device is running Debian with phone functionalities? Is there any way to save power when just using the phone parts?
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 06:03:57 am
Quote from: ShiroiKuma
What's your approach gonna be? Use it too, or start from scrach?
I think I will first do debbootstrap to get a ext2-compatible kernel. Then I will put my customized rootfs on my 4GB SD.
I will also try to install the same GUI (work in progress... 90% done) on it.
Title: Htc Universal
Post by: datathief on April 16, 2008, 06:12:54 am
Quote from: ZDevil
Just curious: How long does the battery last when the device is running Debian with phone functionalities? Is there any way to save power when just using the phone parts?
I have the phone module always running  -  it wakes the main processor when there's an incoming call.  I'm using the official extended battery (3800mAh), and after a day's use (including three or four hours connected to the internet via UMTS) it's usually still well above 50%.  I think the battery charge drops by less than 0.5% per hour when suspended.

The standard battery is 1620mAh, so I would estimate:
100 hours standby
3 hours internet/calls

That's about half the "official" numbers, and I haven't tested it properly, so YMMV.
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 06:33:03 am
That's impressive ... Now i am thinking of buying a 4800mAh extended battery, which is cheap (US$25).
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 06:42:25 am
Quote from: ZDevil
I think I will first do debbootstrap to get a ext2-compatible kernel. Then I will put my customized rootfs on my 4GB SD.
I will also try to install the same GUI (work in progress... 90% done) on it.
I guess I'm not following, what does doing debootstrap to get an ext2-compatible kernel mean in this instance. I thought you'd use the Qtopia directory kernel from the above site and what's the need for debootstrapping then?
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 06:59:50 am
Oops. Stupid me. I am confusing things here.
True. debbootstrap just gets the basic rootfs.
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 07:19:33 am
Two pointers:

http://forum.xda-developers.com/index.php (http://forum.xda-developers.com/index.php)
http://forum.xda-developers.com/forumdisplay.php?f=247 (http://forum.xda-developers.com/forumdisplay.php?f=247)

It's yet another vibrant handheld community like here!
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 07:33:43 am
Quote from: ZDevil
Oops. Stupid me. I am confusing things here.
True. debbootstrap just gets the basic rootfs.

Yep, so what's the advantage of doing it over reusing your old rootfs from the Zaurus? Customization for the Z too Z-oriented, so better start from scratch? If so, how about the rootfs from https://www.oesf.org/forum/index.php?showtopic=25421 (https://www.oesf.org/forum/index.php?showtopic=25421) This is not Z customized, so shouldn't it be a good start?
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 07:39:11 am
Quote from: datathief
I've got calls and SMS working (no caller ID yet, but my Uni is now my primary phone).  I'll be putting it on the web today  -  watch this space (http://wiki.neilandtheresa.co.uk/Titchy_Mobile)
Allright, it's up  

Thanks a lot for your daemon, I'll begin testing tonight.
Title: Htc Universal
Post by: datathief on April 16, 2008, 07:50:44 am
Quote from: ShiroiKuma
Thanks a lot for your daemon, I'll begin testing tonight.
Let me know how it goes.  The code may be a bit untidy still, but it should be quite hackable if you need to.
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 08:40:49 am
Great page. Thanks again, Mr. Titchy.  
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 09:05:40 am
Quote from: datathief
Let me know how it goes.  The code may be a bit untidy still, but it should be quite hackable if you need to.
Yep, I'll report back on the process...
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 01:20:18 pm
Hoho ... I am reading the chapter in the Service Manual (CONFIDENTIAL) on how to dismantle the device. It's so well-written and idiot-proof!
I've got a very cheap new replacement black case and keyboard (around ~EUR 15), together with a beefy batter, for my arriving 2nd MDA Pro. So it will look brand new and cool again.
Title: Htc Universal
Post by: ArchiMark on April 16, 2008, 02:08:57 pm
Quote from: datathief
Quote from: ArchiMark
How is the keyboard and display?
The keyboard is slightly noisy ("clicky"), but perfectly usable.  The screen isn't quite as bright as my Zaurus, but is otherwise very similar (same size, resolution, etc.).  I'm running screen, mutt and finch, but X works fine.  I haven't tried cellwriter for handwriting recognition, but it's in the Debian repos.

Thanks for the input, datathief....

So, main reason I assume that main reasons for using HTC Universal over Z is that it has built-in WiFi/BT and phone functions, right?

If I don't need phone function, then given that I use WiFi card or ethernet card with my 3200/Debian EABI, is there much reason to consider getting the HTC Universal?

Isn't performance better running Debian EABI on my 3200 on internal HD vs running it on a SD card on the HTC?

Thanks,

Mark
Somewhat tempted to get HTC Universal.....  
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 03:02:55 pm
In terms of specs the Z and the HTC Universal have edges over each other:

Pros for the Z: CF slot, internal disk space, better quality screen.

Pros for the Universal: a full range of connectivity options, SDIO (and higher SD interface?), keyboard w/ backlight, faster processor (PXA270@520MHz), dual-camera, microphone, Transflective TFT, more power options (up to 4800 or even 5200 mAh!)

Otherwise, their weight, form factor, dimensions, pocketability and now compatibility with linux are very similar.
Then again, personally the Universal has more cool factors and feels more geeky. The Z just seems to be getting older and older now...
Title: Htc Universal
Post by: ArchiMark on April 16, 2008, 04:35:45 pm
Quote from: ZDevil
In terms of specs the Z and the HTC Universal have edges over each other:

Pros for the Z: CF slot, internal disk space, better quality screen.

Pros for the Universal: a full range of connectivity options, SDIO (and higher SD interface?), keyboard w/ backlight, faster processor (PXA270@520MHz), dual-camera, microphone, Transflective TFT, more power options (up to 4800 or even 5200 mAh!)

Otherwise, their weight, form factor, dimensions, pocketability and now compatibility with linux are very similar.
Then again, personally the Universal has more cool factors and feels more geeky. The Z just seems to be getting older and older now...

Thanks for all that feedback, ZDevil!

So, Universal is sounding more and more tempting.....

Hmmm........


 
Title: Htc Universal
Post by: datathief on April 16, 2008, 05:13:29 pm
Some notes on Linux support for the HTC Universal:

Quote from: ZDevil
a full range of connectivity options
I haven't tried bluetooth yet.  Wifi works, but the driver is flaky (can be worked around).  GPRS/UMTS works nicely.

Quote
SDIO (and higher SD interface?)
The SD card slot is occupied when running Linux (there's no way to install to the internal flash yet).

Quote
keyboard w/ backlight
One of my favourite features.  

Quote
faster processor (PXA270@520MHz)
cpufreq works, too.

Quote
dual-camera
No camera drivers yet.  Apparently a Motorola phone uses the same camera, and there's a driver for that somewhere.  My next project, I think...

Quote
microphone
Works under ALSA.

Quote
Transflective TFT
I'll see how this works out when summer comes...

Quote
more power options (up to 4800 or even 5200 mAh!)
I had some apm problems when I installed a 3800mAh battery, but once I charged and discharged it completely (to re-calibrate the charging controller) it works fine.
Title: Htc Universal
Post by: garmiste on April 16, 2008, 05:15:30 pm
The Universal looks more and more tempting. I have been getting tired hauling around a PDA AND a phone. The geek factor gets really high when I carry a PDA, cell phone, and a ham radio on my belt. Now this has me thinking... if I could run packet radio with a Universal and my radio, do APRS from the car with a built-in GPS... hmmmm.
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 05:20:46 pm
@datathief:
Thanks for the update again.
I saw you mentioning that running the roofts off SD is a bit slow. Can you give us more specific info? In fact I find the speed running Debian EABI off SD on the Z is still quite acceptable. It seems unlikely that the speed of the SD interface on the Universal is lower than the Z's. If speed is acceptable then running X shouldn't be a big deal.
Title: Htc Universal
Post by: datathief on April 16, 2008, 06:04:09 pm
Quote from: ZDevil
@datathief:
Thanks for the update again.
I saw you mentioning that running the roofts off SD is a bit slow. Can you give us more specific info? In fact I find the speed running Debian EABI off SD on the Z is still quite acceptable. It seems unlikely that the speed of the SD interface on the Universal is lower than the Z's. If speed is acceptable then running X shouldn't be a big deal.
It feels noticeably slower to load apps than my Zaurus  -  but not unacceptably so.

Code: [Select]
root@universal:~# hdparm -Tt /dev/mmcblk0

/dev/mmcblk0:
 Timing cached reads:    30 MB in  2.01 seconds =  14.93 MB/sec
 Timing buffered disk reads:    4 MB in  3.32 seconds =   1.20 MB/sec
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 06:06:21 pm
Okay. For clearer comparison here are the results of the same test I ran earlier on and posted in another thread:

#1 Hitachi microdrive 6gb
Code: [Select]
/dev/hdc1:
 Timing cached reads:   168 MB in  2.02 seconds =  83.17 MB/sec
 Timing buffered disk reads:    6 MB in  3.26 seconds =   1.84 MB/sec

#2 Sandisk Extreme III CF 16gb
Code: [Select]
/dev/hda1:
 Timing cached reads:   164 MB in  2.01 seconds =  81.59 MB/sec
 Timing buffered disk reads:    8 MB in  3.26 seconds =   2.45 MB/sec

My question: Does the speed of the SD matter on the Universal, as it doesn't on the Z?
Title: Htc Universal
Post by: datathief on April 16, 2008, 06:48:11 pm
Quote from: ZDevil
My question: Does the speed of the SD matter on the Universal, as it doesn't on the Z?
Here's the result for the same card in the Zaurus:
Code: [Select]
/dev/mmcblk0
 Timing cached reads:    70 MB in  2.01 seconds =  33.85 MB/sec
 Timing buffered disk reads:    6 MB in  3.52 seconds =   1.70 MB/sec
It looks like the card is capable of higher speeds, so I would guess that the card is not the limiting factor.
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 06:50:53 pm
Digging out this pretty old review (30 months ago), but still a very nice one:

http://www.pdagold.com/articles/detail.asp?a=257 (http://www.pdagold.com/articles/detail.asp?a=257)

Remember it's three years back -- during the time when the Cxk series was launched ...
The design and features of the Universal are definitely superior than the Zs ...
... if you can forget about how much it was priced then: "The one I have reviewed was bought abroad for an unbelievable $1200 USD excluding VAT."    

What a quirky sense of fun: my future dream gadget would turn out to be such a (chronologically) backward machine ...  
Title: Htc Universal
Post by: ShiroiKuma on April 16, 2008, 08:14:39 pm
All right, I just bought the phone, gettimg ready to hack.

Question, does anyone have an eabi rootfs tarball with python-serial, pppd, and socat installed already? Or can anyone confirm if they're present in the rootfs packages mentioned in the previous threads?

The reason being, so that I can start htcunid off of it right away, and connect to the web as explained in datathief's guide and then apt- upgrade and installing needed stuff would be easy...
Title: Htc Universal
Post by: ZDevil on April 16, 2008, 08:30:06 pm
Just chrooted into the rootfs on my SD and checked:
(alas,) none of these packages are installed yet...

A quick and dirty solution is to download and extract these packages to the rootfs.  (ar -x PACKAGE && tar -xzf data.tar.gz)
It seems you can simply try these three packages: python-serial, ppp (including pppd) and socat, plus libpcap0.8 as a dependency.

Or to play safe you can first boot it up off the SD on the Z (flashing or simply kexecing the debian kernel), then apt-get install them, then run it on the Universal.
Title: Htc Universal
Post by: datathief on April 17, 2008, 05:23:06 am
Quote from: ShiroiKuma
All right, I just bought the phone, gettimg ready to hack.

Question, does anyone have an eabi rootfs tarball with python-serial, pppd, and socat installed already? Or can anyone confirm if they're present in the rootfs packages mentioned in the previous threads?
You should be able to get USB networking or wifi working without much trouble  Load the htcuniversal-acx and acx modules for wifi.  To prevent the wifi driver falling over, use iwconfig wlan0 rate 1M.

On a related note, there's another hack missing from my instructions.  The wifi chipset is powered up by default, and it drains the battery rapidly.  At boot time, I load htcuniversal-acx and acx, then rmmod acx.  Don't rmmod htcuniversal-acx  -  it crashes if you try...
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 06:54:33 am
OK, intermediate report, going quite well...

I've booted the Zdevil's clean and configured tarball, started x, obviously the display doesn't work. Will try to see if it's just the pointercal, copied one over from the OpenMoko image, which worked, so will try to see if it works with that.

Otherwise, it would be using another device for the input. If this is so, which one?
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 07:08:24 am
Update, this doesn't solve it, so it's (probably logically) another device than on the Z. I've also noted no modules are loaded after starting.

datathief, do you have a base rootfs which maybe I should start from and disregard the Z rootfs, if that would be a better solution?
Title: Htc Universal
Post by: datathief on April 17, 2008, 07:25:48 am
Quote from: ShiroiKuma
OK, intermediate report, going quite well...

I've booted the Zdevil's clean and configured tarball, started x, obviously the display doesn't work. Will try to see if it's just the pointercal, copied one over from the OpenMoko image, which worked, so will try to see if it works with that.

Otherwise, it would be using another device for the input. If this is so, which one?
I don't remember having difficulty getting X running, but it's been a while.  Try setting TS_DEVICE=/dev/input/event0.
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 08:03:02 am
Quote from: datathief
I don't remember having difficulty getting X running, but it's been a while.  Try setting TS_DEVICE=/dev/input/event0.
Will try... You wouldn't remember which rootfs you used then, when you got started, would you?
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 08:40:05 am
Quote from: datathief
I don't remember having difficulty getting X running, but it's been a while.  Try setting TS_DEVICE=/dev/input/event0.
This had no effect apparently, perhaps I'll try ts_calibrate before X, to see if it makes any difference.
Title: Htc Universal
Post by: datathief on April 17, 2008, 09:11:37 am
Quote from: ShiroiKuma
You wouldn't remember which rootfs you used then, when you got started, would you?
I used debootstrap to build the rootfs, and the packages at http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54) to get X working.
Title: Htc Universal
Post by: datathief on April 17, 2008, 09:14:47 am
Quote from: ShiroiKuma
Quote from: datathief
I don't remember having difficulty getting X running, but it's been a while.  Try setting TS_DEVICE=/dev/input/event0.
This had no effect apparently, perhaps I'll try ts_calibrate before X, to see if it makes any difference.
Is there any helpful output from the X server?  Can you start Xfbdev from the command line?
Code: [Select]
TS_DEVICE=/dev/input/event0 Xfbdev & pid=$!; sleep 10s; pkill $pid
EDIT: I think it's TSLIB_TSDEVICE, not TS_DEVICE.  Oops.
Title: Htc Universal
Post by: datathief on April 17, 2008, 09:25:34 am
Quote from: datathief
Quote from: ShiroiKuma
Quote from: datathief
I don't remember having difficulty getting X running, but it's been a while.  Try setting TS_DEVICE=/dev/input/event0.
This had no effect apparently, perhaps I'll try ts_calibrate before X, to see if it makes any difference.
Is there any helpful output from the X server?  Can you start Xfbdev from the command line?
Code: [Select]
TS_DEVICE=/dev/input/event0 Xfbdev & pid=$!; sleep 10s; pkill $pid
Hang on...  I've taken a look in the packages from http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54) and found where the touchscreen device is configured.  This may not apply to the packages you're using, but anyway...I think event0 is correct  -  if I do cat -v /dev/input/event0, I get output when I touch the screen.
Title: Htc Universal
Post by: desertrat on April 17, 2008, 10:44:39 am
Quote from: datathief
The SD card slot is occupied when running Linux (there's no way to install to the internal flash yet).
Does it do SDHC?
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 11:04:09 am
Quote from: datathief
  • Edit /etc/profile.d/tslib.sh, and change /dev/input/ts0 to /dev/input/event0
  • Log out or reboot
  • Start X
I think event0 is correct  -  if I do cat -v /dev/input/event0, I get output when I touch the screen.
Allright, didn't get as far as tslib.sh, but I copied /etc/ts.conf from the OpenMoko rootfs and then could run ts_calibrate and now the touchscreen works in X.

Now I'm trying to start X as a normal user, not as root.

When I run from a normal account created, I keep getting[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']$ startx
X: cannot stat /etc/X11/X (No such file or directory), aborting.
xinit:  Server error.[/div]

So far haven't been able to fix this. Am searching on the web for pointers, but other than saying dpkg-reconfigure xorg or whatever not much. Any hints?
Title: Htc Universal
Post by: datathief on April 17, 2008, 12:06:10 pm
Quote from: ShiroiKuma
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']$ startx
X: cannot stat /etc/X11/X (No such file or directory), aborting.
xinit:  Server error.[/div]

So far haven't been able to fix this. Am searching on the web for pointers, but other than saying dpkg-reconfigure xorg or whatever not much. Any hints?
Try making a link to Xfbdev:
Code: [Select]
ln -s `which Xfbdev` /etc/X11/X
Title: Htc Universal
Post by: datathief on April 17, 2008, 12:21:50 pm
FYI, I've fixed a bug in htcunid (it crashed if the phone was suspended while GPRS was in use), and uploaded a proper htcunid.deb.  I'll try to put together a deb of the other stuff (keymap, sound, and keyboard and power hacks).
Title: Htc Universal
Post by: ShiroiKuma on April 17, 2008, 04:17:03 pm
Quote from: datathief
Try making a link to Xfbdev:
Code: [Select]
ln -s `which Xfbdev` /etc/X11/X
I kept thinking why it would require a symlink that root doesn't require when starting X. Of course, the answer is simple. Since the simple user didn't have the same path definitions as rot etc. So I copied over .profile and .xserverrc from /root directory.

However now there is again something that beats me. I get:
Code: [Select]
$ startx


Fatal server error:
LinuxInit: Server must be suid root

giving up.

And this though
Code: [Select]
# chmod u+s `which X` went through with no problem.

What the? Currently cannot move on this.
Title: Htc Universal
Post by: ZDevil on April 18, 2008, 04:03:24 am
So ShiroiKuma did you manage to get X running as root?
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 06:32:09 am
Quote from: ZDevil
So ShiroiKuma did you manage to get X running as root?
As root it runs no prob.

But I'd like to get it to run as a regular user. Now, the problem seems to be centered around /usr/bin/Xfbdev

If I suid it, then even trying to start X as root gives me the above error that Server has to be suid... What the...?

If I chmod it 755 again, then as root I can start and run no prob, sudo startx starts it, but the touchscreen doesn't work, starting as regular user gives me the above error?

I'm just about to check your thread on the clean configured tarball. Did you encounter problems there creating and running as normal user? Or did nobody do that? Doesn't seem smart to me to run the environment as root.
Title: Htc Universal
Post by: ZDevil on April 18, 2008, 06:43:03 am
@ShiroiKuma

Try this: https://www.oesf.org/forum/index.php?act=fi...&pid=170701 (https://www.oesf.org/forum/index.php?act=findpost&hl=root&pid=170701)

And this tool: https://www.oesf.org/forum/index.php?showforum=155 (https://www.oesf.org/forum/index.php?showforum=155)
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 06:45:24 am
OK, I seem to have a clearer understanding from reading the web. It seems if you don't use xdm or an alternative manager, you cannot start an X session as non-root. If so, then running icewm as non-root is not a possibility.

I am understanding it correctly?
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 07:25:20 am
OK, this is clear, I'll get on with install an gdm or xdm and will see.

On another note, what I've noticed so far, datathief, how is the keyboard backlighting - do you have it working? As mine isn't backlit when in debian...
Title: Htc Universal
Post by: datathief on April 18, 2008, 09:30:57 am
Quote from: ShiroiKuma
OK, this is clear, I'll get on with install an gdm or xdm and will see.

On another note, what I've noticed so far, datathief, how is the keyboard backlighting - do you have it working? As mine isn't backlit when in debian...
Check /sys/class/leds.  The following turns the keyboard backlight on:
Code: [Select]
echo 1 >"/sys/class/leds/htcuniversal:kbdbac/brightness"
I've bound a script to the backlight button to cycle through different keyboard and screen backlight settings.  I'll upload it to my wiki later.
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 10:03:48 am
Quote from: datathief
I've bound a script to the backlight button to cycle through different keyboard and screen backlight settings.  I'll upload it to my wiki later.
Thanks.

I see you're uploading a rootfs now. Since you mentioned you don't use X, what is in it? Does it include X? Returning to my question earlier on, it's of interest to me why you don't use X, out of performance reasons? And do you just work with screen and console or what?
Title: Htc Universal
Post by: datathief on April 18, 2008, 10:26:35 am
Quote from: ShiroiKuma
I see you're uploading a rootfs now. Since you mentioned you don't use X, what is in it? Does it include X? Returning to my question earlier on, it's of interest to me why you don't use X, out of performance reasons? And do you just work with screen and console or what?
There's no X in the rootfs  -  I wanted to keep it as small as possible.  I'll put a page on my wiki for installing X.

I use screen, mutt (e-mail), finch (instant messaging) and links (web browsing).  I've built a basic phone UI with whiptail (I'll upload that to the wiki too), and my ringtone is music from "Project X (http://www.team17.com/games.html?filterType=title&title=Project%20x)" played using mikmod.
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 10:53:07 am
Quote from: datathief
I use screen, mutt (e-mail), finch (instant messaging) and links (web browsing).  I've built a basic phone UI with whiptail (I'll upload that to the wiki too), and my ringtone is music from "Project X (http://www.team17.com/games.html?filterType=title&title=Project%20x)" played using mikmod.
I've started testing your phone daemon just now. Just started inspecting /etc/htcunid/event.d/example

How do you set a ringtone? You've mentioned before there's no caller ID, but is it possible to elicit some visual feedback when a call is incoming.

I've confirmed it works, I've made a call and received one when I knew I was being called, however no feedback, no vibrate...

Do I have to rename the example file something and then edit it, haven't had a deep look at the structure of your deb so far. But just to get me started, so that I can pop the SIM in and do testing being sure in the meantime not to miss incoming calls and SMS.

Your help is much appreciated. Thanks a lot.

EDIT: OK, just saw your uploads on your site. Will go check these out.
EDIT 2: Oops, too fast, uploads still not there.
EDIT 3: And there
Title: Htc Universal
Post by: datathief on April 18, 2008, 11:01:00 am
Quote from: ShiroiKuma
Quote from: datathief
I use screen, mutt (e-mail), finch (instant messaging) and links (web browsing).  I've built a basic phone UI with whiptail (I'll upload that to the wiki too), and my ringtone is music from "Project X (http://www.team17.com/games.html?filterType=title&title=Project%20x)" played using mikmod.
I've started testing your phone daemon just now. Just started inspecting /etc/htcunid/event.d/example

How do you set a ringtone? You've mentioned before there's no caller ID, but is it possible to elicit some visual feedback when a call is incoming.

I've confirmed it works, I've made a call and received one when I knew I was being called, however no feedback, no vibrate...

Do I have to rename the example file something and then edit it, haven't had a deep look at the structure of your deb so far. But just to get me started, so that I can pop the SIM in and do testing being sure in the meantime not to miss incoming calls and SMS.

Your help is much appreciated. Thanks a lot.
Check that the example script is executable.  Then you should get vibration when there's a call or SMS.

(I have working caller ID now, btw  -  I'll be uploading that tonight).

I've just uploaded the scripts I'm using here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Phone_Scripts).  Install them to /etc/htcunid/event.d, edit them (you probably prefer an mp3 ringtone), and make them executable.
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 11:45:43 am
Quote from: datathief
Check that the example script is executable.  Then you should get vibration when there's a call or SMS.

(I have working caller ID now, btw  -  I'll be uploading that tonight).

I've just uploaded the scripts I'm using here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Phone_Scripts).  Install them to /etc/htcunid/event.d, edit them (you probably prefer an mp3 ringtone), and make them executable.
Yeah, that was the reason, I'll be testing it now.

BTW, do you login as root, or as a regular user. It seems if I login as a normal user, I can't start the htcunid service even through sudo.

Also, is there a special audio hack associated with sound. If I play a ringtone in mplayer and use the 0 and 9 keys to manipulate volume, it goes mute. Is volume even in other apps only to be managed by htcunid volume?
Title: Htc Universal
Post by: datathief on April 18, 2008, 11:59:53 am
Quote from: ShiroiKuma
BTW, do you login as root, or as a regular user. It seems if I login as a normal user, I can't start the htcunid service even through sudo.
Recent versions of htcunid.deb install to /etc/rcS.d, so it starts up at boot time.

Quote
Also, is there a special audio hack associated with sound. If I play a ringtone in mplayer and use the 0 and 9 keys to manipulate volume, it goes mute. Is volume even in other apps only to be managed by htcunid volume?
You should be able to use alsamixer (or any ALSA volume control) for this.  If you have problems, you could try using ALSA's OSS emulation (mplayer -ao oss).
Title: Htc Universal
Post by: ZDevil on April 18, 2008, 02:03:32 pm
Perhaps it's not such a bad idea to set up and get everything working as root before figuring out things for normal users?
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 04:05:41 pm
Quote from: datathief
(I have working caller ID now, btw  -  I'll be uploading that tonight).
Great, looking forward to that. I guess I'll wait before you put it up before checking how the ringtones can be personalized for different users based on caller ID.

Or have you already thought of that?
Title: Htc Universal
Post by: datathief on April 18, 2008, 05:09:46 pm
Quote from: ShiroiKuma
Quote from: datathief
(I have working caller ID now, btw  -  I'll be uploading that tonight).
Great, looking forward to that.
This is now available

Quote
I guess I'll wait before you put it up before checking how the ringtones can be personalized for different users based on caller ID.

Or have you already thought of that?
The caller ID is passed to the event.d scripts as $2.  You could do something like:
Code: [Select]
case "$2" in
0123456789)
  # play custom ringtone
 ;;
0987654321)
  # play custom ringtone
 ;;
*)
  # play default ringtone
 ;;
esac
Title: Htc Universal
Post by: ShiroiKuma on April 18, 2008, 07:36:35 pm
OK, will try the above.

My comments so far:

SMS getting passed to whiptail doesn't work if extended character set (Unicode) is used. This is a big problem in languages that use them, i.e. Russian, Czech etc. If an SMS with Unicode characters is received, it is displayed as empty.

After making a call, touchtones are not possible. Thus when you dial into let's say a mailbox, or a bank automatized system, you cannot enter numbers or pounds etc.

I'm currently away from my Z, but perhaps the command to revigorate the keyboard after suspend should be executed as part of the restore after suspend sequence. Since I don't have the Z to inspect, don't remember where the shellscripts to be carried out after restore went...

Didn't check so far, but did you include the wifi powerdown to save energy into the init scripts to be run after boot?

EDIT: Installed htcunid-0.3 and the Unicode SMS missing is partially solved, I think. It comes as garbled text, but that's evidently because whiptail doesn't use a Unicode font. This is an improvement though. Anyhow, an archiving option needs to be built into the SMS receiption. I.e. not only display the SMS received and number it came from, but also echo it >> to a default SMS archive. If you're not working on it, I'll come up with a temporary hack.

The same goes for calls. There needs to be a call register. I'm just about to check the caller ID in htcunid-0.3, but again, a simple echo the number and time >> to a call-log file should do.

EDIT2: When I added a quick hack to whiptail shellscript to >> the SMS text to a log-sms.txt file, it seems it doesn't save the text in Unicode. Can't tell for sure, since I haven't installed a UTF-8 compliant terminal, but seems to be the case. Will report back later.

EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.

EDIT4: I'm thinking it's not associated with the package itself, rather a config of zdevil's rootfs I used originally. Maybe it might be better to install from datathiefs rootfs. I vaguely recall when installing X under debian on the Z the need to take packages from Aangstroem, like xserver-kdrive etc. Datathief, do you have a brief set of steps to take to install working X, since I can't consult with the Z.
Title: Htc Universal
Post by: datathief on April 19, 2008, 06:16:05 am
Quote from: ShiroiKuma
SMS getting passed to whiptail doesn't work if extended character set (Unicode) is used. This is a big problem in languages that use them, i.e. Russian, Czech etc. If an SMS with Unicode characters is received, it is displayed as empty.
The function to decode an SMS doesn't handle anything more than 7-bit ASCII yet.

Quote
After making a call, touchtones are not possible. Thus when you dial into let's say a mailbox, or a bank automatized system, you cannot enter numbers or pounds etc.
True.  I can add a function to htcunid to do this, but I don't have any ideas for a UI.

Quote
I'm currently away from my Z, but perhaps the command to revigorate the keyboard after suspend should be executed as part of the restore after suspend sequence. Since I don't have the Z to inspect, don't remember where the shellscripts to be carried out after restore went...
Do you have apmd installed?  This works for me (see /etc/apm/event.d/htcuni-keyboard).

Quote
Didn't check so far, but did you include the wifi powerdown to save energy into the init scripts to be run after boot?
Yes  -  this is done by /etc/init.d/htcuni-wifipower.

Quote
EDIT: Installed htcunid-0.3 and the Unicode SMS missing is partially solved, I think. It comes as garbled text, but that's evidently because whiptail doesn't use a Unicode font. This is an improvement though.
See above.

Quote
Anyhow, an archiving option needs to be built into the SMS receiption. I.e. not only display the SMS received and number it came from, but also echo it >> to a default SMS archive. If you're not working on it, I'll come up with a temporary hack. The same goes for calls. There needs to be a call register. I'm just about to check the caller ID in htcunid-0.3, but again, a simple echo the number and time >> to a call-log file should do.
The default example script does this.  A better solution would involve /var/spool and use mailbox format.  Feel free to upload scripts to the wiki.

Quote
EDIT2: When I added a quick hack to whiptail shellscript to >> the SMS text to a log-sms.txt file, it seems it doesn't save the text in Unicode. Can't tell for sure, since I haven't installed a UTF-8 compliant terminal, but seems to be the case. Will report back later.
Again, see above.

Quote
EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.
I'll look into this.  Could be a problem with the whiptail script.

Quote
EDIT4: I'm thinking it's not associated with the package itself, rather a config of zdevil's rootfs I used originally. Maybe it might be better to install from datathiefs rootfs. I vaguely recall when installing X under debian on the Z the need to take packages from Aangstroem, like xserver-kdrive etc. Datathief, do you have a brief set of steps to take to install working X, since I can't consult with the Z.
I used the packages from http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54)
Title: Htc Universal
Post by: ShiroiKuma on April 19, 2008, 10:19:16 am
Quote from: datathief
The function to decode an SMS doesn't handle anything more than 7-bit ASCII yet.
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...

Quote
Quote
After making a call, touchtones are not possible. Thus when you dial into let's say a mailbox, or a bank automatized system, you cannot enter numbers or pounds etc.
True.  I can add a function to htcunid to do this, but I don't have any ideas for a UI.
I think at least in this stage a UI isn't necessary at all. One can just type on the hardware keyboard and if it'll sent DTMF tones it's fine.

Quote
Do you have apmd installed?  This works for me (see /etc/apm/event.d/htcuni-keyboard).
It was probably a problem of zdevil's rootfs and my modifying it. I'm currently trying with your simple rootfs.

Quote
Quote
Anyhow, an archiving option needs to be built into the SMS receiption. I.e. not only display the SMS received and number it came from, but also echo it >> to a default SMS archive. If you're not working on it, I'll come up with a temporary hack. The same goes for calls. There needs to be a call register. I'm just about to check the caller ID in htcunid-0.3, but again, a simple echo the number and time >> to a call-log file should do.
The default example script does this.  A better solution would involve /var/spool and use mailbox format.  Feel free to upload scripts to the wiki.
I'll take a look at the example and see what it does. I wrote a couple of simple lines yesterday, before my rootfs stopped working with htcunid, but I liked their functionality, basically plain text files - sms-log calls-missed calls-accepted calls-made with timestamps and caller ids. If it's different than your example, I'll add it.

Quote
Quote
EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.
I'll look into this.  Could be a problem with the whiptail script.
I'll let you know in a little while if there's a prob with it, since I've started clean with your rootfs.

Quote
I used the packages from http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54)
Thanks.
Title: Htc Universal
Post by: datathief on April 19, 2008, 11:50:43 am
Quote from: ShiroiKuma
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...
Should be easy to decode.  I've never written python code to handle UTF-8, though, so I'll need to read up on that.

Quote
One can just type on the hardware keyboard and if it'll sent DTMF tones it's fine.
I've found out how to send DTMF, so I can add a new command to the next version of htcunid.  You can do it with the current version by using AT commands:
Code: [Select]
htcunid atcmd "AT+VTS="You can only enter one digit at a time this way.  If you can work out a way to do this during a call, please do.  We're reaching the limits of what whiptail can do.  Probably something like:
Code: [Select]
whiptail --infobox "In call to $2" 20 50
while [ "$digit" != "^[" ]; do
  # Get 1 keypress
  read -n 1 digit
  # Convert esc (hangup key) to "^[" so it's easier to handle
  digit=`echo "$digit" | cat -v`
  case "$digit" in
  1|2|3|4|5|6|7|8|9|0|"*"|"#")
    htcunid atcmd "AT+VTS=$digit"
 ;;
  esac
done
Edit:  This works (albeit slowly  -  I may need to send some more AT commands to set the speed).  I've updated the whiptail script on the wiki.

If you don't already know: you can get out of the "In a call..." screen without ending the call by pressing alt+left (alt is the "internet explorer" key).
Title: Htc Universal
Post by: danboid on April 19, 2008, 12:32:31 pm
Oh Wow!

Big congrats datathief on some legendary hacking - getting Debian working well on the Uni - many of us on OESF have speculated on the joy of fully functional Linux on the Uni for years now so its great to see it finally happen - I've been getting all excited reading this thread

Problem for me now is what should I spend my limited cash on - a HTC uni or should I wait for the Pandora? I really quite fancy Pandoras TV-out, better graphics, CPU and display but I would rather it dumped the analogue sticks or something to make way for our all important TAB, ALT, CTRL and ESC keys we all need to use a terminal properly, so this for me is an advantage of the Z over Pandora- full set of keys. Uni also has a better keyboard than Pandora (if the current renderings closely approx. the final design of course) and I like that it has an integrated phone and camera- two cool features missing on Pandora. I'd rather a better keyboard than a joypad as I'm more interested in a pocket Linux/Haiku machine than a gaming device.

Can you get USB HOST under HTC Titchy?

What is mplayer performance like on HTC versus mplayer on the Z?

How well does the uni overclock? Be interested to see some benchmarks versus a fully overclocked SL-3000/3100

I think Debian on the Uni represents the arrival of the 'digital convergance' the tech press/ industry has been talking about since the Amiga days- there's a lot of Pandora nay-sayers esp. on these boards but I think that and similar devices will take this phenomenon mainstream sooner than you think.
Title: Htc Universal
Post by: datathief on April 19, 2008, 12:59:30 pm
Quote from: danboid
Oh Wow!

Big congrats datathief on some legendary hacking - getting Debian working well on the Uni - many of us on OESF have speculated on the joy of fully functional Linux on the Uni for years now so its great to see it finally happen - I've been getting all excited reading this thread
I can only take credit for bringing all the bits together (kernel from handhelds.org, Debian's new armel port, and lots of documentation on AT commands).

Quote
Problem for me now is what should I spend my limited cash on - a HTC uni or should I wait for the Pandora? I really quite fancy Pandoras TV-out, better graphics, CPU and display but I would rather it dumped the analogue sticks or something to make way for our all important TAB, ALT, CTRL and ESC keys we all need to use a terminal properly, so this for me is an advantage of the Z over Pandora- full set of keys. Uni also has a better keyboard than Pandora (if the current renderings closely approx. the final design of course) and I like that it has an integrated phone and camera- two cool features missing on Pandora. I'd rather a better keyboard than a joypad as I'm more interested in a pocket Linux/Haiku machine than a gaming device.
I just like telling people my ringtone is a shell script.  

Quote
Can you get USB HOST under HTC Titchy?
As far as I know the hardware doesn't support it (an unconnected pin somewhere IIRC).

Quote
What is mplayer performance like on HTC versus mplayer on the Z?
I haven't a clue.  Maybe later this weekend.  I'm sure I've read somewhere that the Uni's video performance is poor, though.

Quote
How well does the uni overclock? Be interested to see some benchmarks versus a fully overclocked SL-3000/3100
Code: [Select]
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
624000
Title: Htc Universal
Post by: ShiroiKuma on April 19, 2008, 02:48:50 pm
Quote from: ShiroiKuma
Quote
Quote
EDIT3: The htcunid-0.3 package gives me problems when accepting a call. The call ends in a couple of seconds and the phone freezes.
I'll look into this.  Could be a problem with the whiptail script.
I'll let you know in a little while if there's a prob with it, since I've started clean with your rootfs.
There is no problem with the deb, it works fine. It was associated with using the other rootfs.
Title: Htc Universal
Post by: ShiroiKuma on April 19, 2008, 03:03:07 pm
Quote from: datathief
Quote from: ShiroiKuma
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...
Should be easy to decode.  I've never written python code to handle UTF-8, though, so I'll need to read up on that.
That's great news, if you can get that done. BTW, it should go both ways, decode and encode - for sending UTF-8 SMS messages.

Quote
This works (albeit slowly  -  I may need to send some more AT commands to set the speed).  I've updated the whiptail script on the wiki.
I'll test how it reacts.

Regarding your SMS and calls logging, I didn't look in /root/ originally, that's why didn't notice you had it going on. Essentially, my hacks were almost identical.

However, I've modified it for myself a bit, and propose the same modification to your scripts: basically have 5 logs: log-sms-received.txt log-sms-sent.txt log-calls-received.txt log-calls-made.txt log-calls-missed.txt

In the example script, you carry out logging for sms-received in the receivesms section, calls-made in the dial section, calls-received in the answer section.

In the whiptail script, you carry out logging for calls-missed in the ring2 section, whereby you have your if definition, after which I add an else section:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']else
   htcunid hangup
   echo "`date` $2" >> $LOGCALLSMISSED
   openvt -w -s -- whiptail --clear --fb --msgbox "`date`, missed call from $2"
   htcunid hangup
fi[/div]

Obviously, you define LOGCALLSMISSED at the top of the script.

This way it also has the benefit of popping up an info box that you see when you return to the phone, that you've missed a call(s)...

And to carry out logging for sms-sent, I just added an sms script:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']LOGSMSENT=...wherever...
echo "`date` $*"
htcunid sendsms $*[/div]

Other comments so far:

I have problems with suspend, when suspending with [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']echo mem > /sys/power/state[/div] it's fine, however as soon as you close the lid, it comes back on. Apparently something triggers a key event or what upon close and it brings it out of suspend?

Do you have the same behavior?

Finally, I can't find the backlight incremental change scripts you mentioned earlier, anywhere in your wiki...

Later.
Title: Htc Universal
Post by: datathief on April 19, 2008, 03:52:10 pm
Quote from: ShiroiKuma
In the whiptail script, you carry out logging for calls-missed in the ring2 section ...
I'd like to build a logging script separate from the whiptail script (at some time in the future someone's going to insist on an X-based UI  ), but I imagine it will be difficult.

Quote
I have problems with suspend, when suspending with
Code: [Select]
echo mem > /sys/power/state it's fine, however as soon as you close the lid, it comes back on. Apparently something triggers a key event or what upon close and it brings it out of suspend?
Yes, that is annoying  -  opening and closing the lid triggers an interrupt.  I'll try to find out how to turn the interrupt off.

I use screen's "idle" setting to run apm --suspend after 2 minutes with no keyboard activity  -  so I can close the lid and it will suspend later.  I'm sure there's a way to do the same thing in X.

Quote
Finally, I can't find the backlight incremental change scripts you mentioned earlier, anywhere in your wiki...
Oops.  I'll put it up now.
Title: Htc Universal
Post by: datathief on April 19, 2008, 09:58:25 pm
Quote from: ShiroiKuma
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...
I've uploaded a Unicode-capable htcunid.  It works for me (although whiptail doesn't always cope).  Let me know if it works for you...
Update: The problem with whiptail seems to be that the new VT created by openvt doesn't have UTF8 support.  If I change the script to run unicode_start, I get the correct characters in the SMS, but the dialog border is broken.  I'm looking into it.
Title: Htc Universal
Post by: ShiroiKuma on April 20, 2008, 07:33:39 am
Quote from: datathief
Quote from: ShiroiKuma
How hard is UTF-8 to implement? This is one thing pretty import for me due to using UTF-8 text a lot, but beyond my scope of contribution...
I've uploaded a Unicode-capable htcunid.  It works for me (although whiptail doesn't always cope).  Let me know if it works for you...
Update: The problem with whiptail seems to be that the new VT created by openvt doesn't have UTF8 support.  If I change the script to run unicode_start, I get the correct characters in the SMS, but the dialog border is broken.  I'm looking into it.
Yeah, noticed the same. However, the reception works fine in terms of the characters being decoded. They are just not displayed in the dialog properly. The characters received are in UTF-8 and fine, I've confirmed by resending back.

There is a little bug with sending SMS, whereby it doesn't send the correct number of bytes it seems. I.e. if you send an SMS in UTF-8, it sends only one byte per character, i.e. the total byte count of the message sent is the number of characters, whereas for each Unicode character you should send 2 bytes. This results in the message to be truncated by exactly as many bytes as many extended characters are present in the SMS.
Title: Htc Universal
Post by: datathief on April 20, 2008, 09:52:15 am
Quote from: ShiroiKuma
There is a little bug with sending SMS, whereby it doesn't send the correct number of bytes it seems. I.e. if you send an SMS in UTF-8, it sends only one byte per character, i.e. the total byte count of the message sent is the number of characters, whereas for each Unicode character you should send 2 bytes. This results in the message to be truncated by exactly as many bytes as many extended characters are present in the SMS.
Yes, I see that now.  The SMS spec is a bit confusing.    

I''ve (hopefully) fixed it, and uploaded to the wiki.
Title: Htc Universal
Post by: ShiroiKuma on April 20, 2008, 01:28:01 pm
Will test soon.

BTW, I've changed your wiki entry for USB connection a bit, as the first line should read:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']ifconfig usb0 192.168.3.1[/div]
Title: Htc Universal
Post by: ShiroiKuma on April 20, 2008, 05:40:16 pm
Quote from: datathief
I''ve (hopefully) fixed it, and uploaded to the wiki.
Unfortunately, still the same. Still truncates the sent SMS.
Title: Htc Universal
Post by: ShiroiKuma on April 21, 2008, 01:42:59 am
Additional issues with X
I've installed X according to http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54) and applied the "2. Use your normal user under X" hack on https://www.oesf.org/index.php?title=1-For_Debian_EABI (https://www.oesf.org/index.php?title=1-For_Debian_EABI)

Now, the situation is as follows, if I don't enable xdm via /etc/init.d/, first login as root, then /etc/init.d/xdm start, xdm starts, I can login as a regular use fine and the system works.

If I enable xdm via /etc/init.d/, even if I log in as root or the regular user in the xdm login, X starts, but the display doesn't react to touch. It seems xdm doesn't read the .xinitrc from either /root or /home/theuser when started this way and so TSLIB_TSDEVICE is not set among others.

How to solve this?
Title: Htc Universal
Post by: ShiroiKuma on April 21, 2008, 01:46:48 am
Accessing other SD partitions
Is anyone successfull in accessing other SD partitions beyond the first one from which debian boots?

I'd like to have a separate swap partition, to be enabled sometimes when needed. Swap partition, because then the SD corruption from frequent access should be limited to it and not corrupt the rootfs. And swap is needed, for instance without it, I cannot generate any locales with dpkg-reconfigure locales, or memory intensive apps will not run.

However when I try to mount the 2nd partition I get[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']mount: special device /dev/sda2 does not exist[/div]
Title: Htc Universal
Post by: datathief on April 21, 2008, 03:54:18 am
Quote from: ShiroiKuma
Quote from: datathief
I''ve (hopefully) fixed it, and uploaded to the wiki.
Unfortunately, still the same. Still truncates the sent SMS.
Sorry  -  the way I was testing it wasn't actually sending Unicode messages.  I've uploaded another one.
Title: Htc Universal
Post by: datathief on April 21, 2008, 03:56:20 am
Quote from: ShiroiKuma
However when I try to mount the 2nd partition I get[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']mount: special device /dev/sda2 does not exist[/div]
I think you want /dev/mmcblk0p2
Title: Htc Universal
Post by: ShiroiKuma on April 21, 2008, 05:37:57 am
Quote from: datathief
I think you want /dev/mmcblk0p2
Doh...

For some reason I kept thinking I have to pass two partitions in the default.txt to haret, but it didn't occur to me to try this within linux...

Will test the SMS UTF-8 sending capability shortly...

EDIT 1: The SMS get sent fine now in UTF-8.
Title: Htc Universal
Post by: ArchiMark on April 21, 2008, 10:56:32 am
Quote from: ShiroiKuma
Additional issues with X
I've installed X according to http://yonggun.tistory.com/54 (http://yonggun.tistory.com/54) and applied the "2. Use your normal user under X" hack on https://www.oesf.org/index.php?title=1-For_Debian_EABI (https://www.oesf.org/index.php?title=1-For_Debian_EABI)

Now, the situation is as follows, if I don't enable xdm via /etc/init.d/, first login as root, then /etc/init.d/xdm start, xdm starts, I can login as a regular use fine and the system works.

If I enable xdm via /etc/init.d/, even if I log in as root or the regular user in the xdm login, X starts, but the display doesn't react to touch. It seems xdm doesn't read the .xinitrc from either /root or /home/theuser when started this way and so TSLIB_TSDEVICE is not set among others.

How to solve this?

Hmmm....very interesting ShiroiKuma!....

As this is what is happening to me on my 3200 per my other thread regarding "XFCE4 with EABI?"

....Unfortunately, I don't have a solution yet....but seems pretty clear that there's something not right with xdm setup as my touchscreen was working OK before I installed xdm.....

Hopefully, either here or on my specific thread this problem will get solved....

Mark

PS.  Meanwhile, if all goes well, I should have a HTC Universal to play with tomorrow.....

 
Title: Htc Universal
Post by: ShiroiKuma on April 21, 2008, 11:39:57 am
Yeah, something weird is happening, it seems xdm, if it's started automatically, doesn't initialize properly. I've determined for sure for instance that the TSLIB_TSDEVICE variable is not set, so it doesn't read the config as when started after a login. However, even when I declared the variable in a script that starts xdm itself, the display still doesn't respond...

Hopefully, we'll get it. Definitely if you solve it with a 3200 and XFCE, be sure to let this thread know too...
Title: Htc Universal
Post by: datathief on April 22, 2008, 05:29:29 am
Quote from: ShiroiKuma
Quote from: datathief
Update: The problem with whiptail seems to be that the new VT created by openvt doesn't have UTF8 support.  If I change the script to run unicode_start, I get the correct characters in the SMS, but the dialog border is broken.  I'm looking into it.
Yeah, noticed the same. However, the reception works fine in terms of the characters being decoded. They are just not displayed in the dialog properly. The characters received are in UTF-8 and fine, I've confirmed by resending back.
I haven't been able to fix the broken dialog border, but the whiptail script now at least displays Unicode.
Title: Htc Universal
Post by: ShiroiKuma on April 22, 2008, 05:39:11 am
Quote from: datathief
I haven't been able to fix the broken dialog border, but the whiptail script now at least displays Unicode.
Is this in 0.6? Because mine doesn't have the dialog border broken and it doesn't display Unicode, i.e. it displays the garbled characters, and saves it properly as UTF-8, so then in a UTF-8 capable prog you can view it.

Is this what you mean?
Title: Htc Universal
Post by: datathief on April 22, 2008, 06:09:41 am
Quote from: ShiroiKuma
Quote from: datathief
I haven't been able to fix the broken dialog border, but the whiptail script now at least displays Unicode.
Is this in 0.6? Because mine doesn't have the dialog border broken and it doesn't display Unicode, i.e. it displays the garbled characters, and saves it properly as UTF-8, so then in a UTF-8 capable prog you can view it.

Is this what you mean?
Sorry, I wasn't very clear.  I've uploaded a new version of the whiptail script that runs unicode_start before displaying the dialog, so (assuming your console font has the necessary characters) it should display unicode messages.
Title: Htc Universal
Post by: ShiroiKuma on April 22, 2008, 11:34:50 am
Quote from: datathief
Sorry, I wasn't very clear.  I've uploaded a new version of the whiptail script that runs unicode_start before displaying the dialog, so (assuming your console font has the necessary characters) it should display unicode messages.
OK, I'll have to search for a good UTF-8 console font, do you know of any?

On another note, can you dial your mailbox? It seems if the number isn't in full international format, it'll just not dial. I.e. I need to call *99 to get into the mailbox, and all I keep getting is something like a busy signal...
Title: Htc Universal
Post by: datathief on April 22, 2008, 05:58:08 pm
Quote from: ShiroiKuma
OK, I'll have to search for a good UTF-8 console font, do you know of any?
I'm using a font from the console-terminus package.

Quote
On another note, can you dial your mailbox? It seems if the number isn't in full international format, it'll just not dial. I.e. I need to call *99 to get into the mailbox, and all I keep getting is something like a busy signal...
You're right.  I've hardcoded a "+" at the beginning of the dialled number.  Handling different types of numbers consistently for calls and SMS needs a little thought  -  I'll try to fix it tonight or tomorrow.  For now, you could edit /usr/bin/htcunid to remove the "+" in "ATD+".  Alternatively, can you get to your mailbox by dialling your own number?

Update: New version of htcunid.  You can now dial national and network-specific numbers.  You must now prepend international numbers with "+".
Title: Htc Universal
Post by: ArchiMark on April 23, 2008, 12:30:28 am
Well...received my Universal today....

Just tried installing Debian, per webpage instructions....ran Haret and here's what I get near the end of the displayed text:

Code: [Select]
[     2.  420001]  mmcblk0: p1
[     6.  800000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[     6.  810000] VFS: Mounted root (ext2 filesystem).
[     6.  820000] Freeing init memory: 96k
[     6.  840000] Warning: unable to open initial console.
[     6.  900000] Kernel panic - not syncing: no init found. Try passing init=option to kernel.


Any suggestions???????


Thanks!

Mark
Who always seems to have problems when installing stuff....  
Title: Htc Universal
Post by: datathief on April 23, 2008, 03:35:13 am
Quote from: ArchiMark
Code: [Select]
[     2.  420001]  mmcblk0: p1
[     6.  800000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[     6.  810000] VFS: Mounted root (ext2 filesystem).
[     6.  820000] Freeing init memory: 96k
[     6.  840000] Warning: unable to open initial console.
[     6.  900000] Kernel panic - not syncing: no init found. Try passing init=option to kernel.
"Mounting unchecked fs" suggests that the card was removed from the machine you used to install before it had finished writing to it.  My first suggestion would be to retry installing the rootfs tarball.
Title: Htc Universal
Post by: ArchiMark on April 23, 2008, 12:14:24 pm
Quote from: datathief
Quote from: ArchiMark
Code: [Select]
[     2.  420001]  mmcblk0: p1
[     6.  800000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[     6.  810000] VFS: Mounted root (ext2 filesystem).
[     6.  820000] Freeing init memory: 96k
[     6.  840000] Warning: unable to open initial console.
[     6.  900000] Kernel panic - not syncing: no init found. Try passing init=option to kernel.
"Mounting unchecked fs" suggests that the card was removed from the machine you used to install before it had finished writing to it.  My first suggestion would be to retry installing the rootfs tarball.


That did it, datathief! Thanks!

Don't know how I did that one....

Anyway, reinstalled the tarball, this time on a 4GB SD card instead of a 1GB card....

Maximum SD Card Size?

Thought about using my new 16GB SD card, but didn't know if that would work on HTC Uni and also for some unknown reason, I couldn't seem to get my Fujitsu U810/Debian to recognize it....so, couldn't unpack tarball onto it...

Debian Boots!
Meanwhile, Debian booted up OK this time..... Yeah!


Now, trying to get ethernet or wifi working now....

USB Ethernet?

Trying to use ethernet through my Linksys USB200M v.2.1 device....at first I got message that there wasn't enough power, so connected up my lil' HP mini-hub and then there's enough power....

Now, to get connected to internet, do I need to do the 2nd section of the Titchy Mobile instructions titled 'Setting Up a USB Network' ?

If that is not what I should do, what should I do to get ethernet working?

Also, what cable type should I be using to connect Linksys to HTC?

I have the 'regular USB cable' and a 'USB host cable'....which one is correct for the HTC?

On my 3200 I use the 'USB host cable'.


Keyboard - Symbols??

If so, how do I type the '>' symbol??? I don't see it on the keyboard....I tried the 'sym' key but I get the '|' symbol when I click that key....



WiFi - UPDATE

As for WiFi, I just re-read instructions and realized that I needed to install 'firmware.tar.gz' and then per instructions:

Code: [Select]
modprobe htcuniversal-acx  (message says "forcing power off...is that OK??)
modprobe acx

....did that and now I see that wlan0 interface recognized in 'ifconfig -a'

I tried 'iwconfig wlan0 rate 1M per instructions, but get message that this is unknown command or something like that....

If I do 'ifup wlan0', console 'goes crazy' with continual scrolling of text.....no way to stop it....have force shutdown by resetting HTC Universal.....text refers to acx and has lots of numbers on each line as it scrolls by...

Any ideas as to get WiFi working properly??


AC Power & USB Hub at Sametime?

Also, Is there anyway to connect the AC power to the Uni AND have the USB hub/ethernet device connected at the same time??? Would be nice to be able to do this since I will usually be near an AC power outlet either at home or at work....

Thanks for any and all help....

Mark
Title: Htc Universal
Post by: ShiroiKuma on April 23, 2008, 02:23:41 pm
Quote from: datathief
You're right.  I've hardcoded a "+" at the beginning of the dialled number.  Handling different types of numbers consistently for calls and SMS needs a little thought  -  I'll try to fix it tonight or tomorrow.  For now, you could edit /usr/bin/htcunid to remove the "+" in "ATD+".  Alternatively, can you get to your mailbox by dialling your own number?

Update: New version of htcunid.  You can now dial national and network-specific numbers.  You must now prepend international numbers with "+".
I think there is a problem with long SMS texts. If you try to send a message over the limit of characters (what is it 140? If so then for Unicode this is 70) it fails and kills the htcunid daemon process or something ugly, tried a number of times and had to manually restart the daemon after each failed attempt.

I think the script needs to check if it's beyond the maximum SMS length and if so, then split into a number of messages and send those in succession.
Title: Htc Universal
Post by: datathief on April 23, 2008, 05:45:40 pm
Quote from: ArchiMark
USB Ethernet?

Trying to use ethernet through my Linksys USB200M v.2.1 device....at first I got message that there wasn't enough power, so connected up my lil' HP mini-hub and then there's enough power....

Now, to get connected to internet, do I need to do the 2nd section of the Titchy Mobile instructions titled 'Setting Up a USB Network' ?

If that is not what I should do, what should I do to get ethernet working?
I don't think the phone even supports USB peripherals (I don't have an adaptor to try).  The USB network instructions are for connecting via a USB cable to a PC.

Quote
Keyboard - Symbols??

If so, how do I type the '>' symbol??? I don't see it on the keyboard....I tried the 'sym' key but I get the '|' symbol when I click that key....
Shift-: = >
Shift-; = <
SYM = |
Fn-SYM = `


Quote
WiFi - UPDATE

As for WiFi, I just re-read instructions and realized that I needed to install 'firmware.tar.gz' and then per instructions:

Code: [Select]
modprobe htcuniversal-acx  (message says "forcing power off...is that OK??)
modprobe acx

....did that and now I see that wlan0 interface recognized in 'ifconfig -a'

I tried 'iwconfig wlan0 rate 1M per instructions, but get message that this is unknown command or something like that....

If I do 'ifup wlan0', console 'goes crazy' with continual scrolling of text.....no way to stop it....have force shutdown by resetting HTC Universal.....text refers to acx and has lots of numbers on each line as it scrolls by...

Any ideas as to get WiFi working properly??
Try dmesg -n1 to stop the messages appearing on the console.  Don't do iwconfig wlan0 rate 1M until after you've connected  to the access point.  You could try adding these to your /network/interfaces, e.g.:
Code: [Select]
wlan0 inet dhcp
  pre-up iwconfig wlan0 rate 11M
  post-up iwconfig wlan0 rate 1M

Quote
AC Power & USB Hub at Sametime?

Also, Is there anyway to connect the AC power to the Uni AND have the USB hub/ethernet device connected at the same time??? Would be nice to be able to do this since I will usually be near an AC power outlet either at home or at work....
The phone should charge via any powered USB connection, although not as quickly as when connected to AC.  Plug it in and type apm to see if it's charging.
Title: Htc Universal
Post by: datathief on April 23, 2008, 05:51:32 pm
Quote from: ShiroiKuma
I think the script needs to check if it's beyond the maximum SMS length and if so, then split into a number of messages and send those in succession.
It's even worse for incoming muiti-part messages:  they get completely mangled.  They seem to have some sort of extra header.  I think this is the last major missing feature  -  I'll see what I can do.
Title: Htc Universal
Post by: ArchiMark on April 23, 2008, 06:17:24 pm
Quote from: ArchiMark
USB Ethernet?

Trying to use ethernet through my Linksys USB200M v.2.1 device....at first I got message that there wasn't enough power, so connected up my lil' HP mini-hub and then there's enough power....

Now, to get connected to internet, do I need to do the 2nd section of the Titchy Mobile instructions titled 'Setting Up a USB Network' ?

If that is not what I should do, what should I do to get ethernet working?

Quote from: datathief
I don't think the phone even supports USB peripherals (I don't have an adaptor to try).  The USB network instructions are for connecting via a USB cable to a PC.

OK, I get it now....however, I do think that it recognizes that I've plugged something in...at least I think so..

Quote
Keyboard - Symbols??

If so, how do I type the '>' symbol??? I don't see it on the keyboard....I tried the 'sym' key but I get the '|' symbol when I click that key....
Quote
Shift-: = >
Shift-; = <
SYM = |
Fn-SYM = `

Got it, THANKS!


Quote
WiFi - UPDATE

As for WiFi, I just re-read instructions and realized that I needed to install 'firmware.tar.gz' and then per instructions:

Code: [Select]
modprobe htcuniversal-acx  (message says "forcing power off...is that OK??)
modprobe acx

....did that and now I see that wlan0 interface recognized in 'ifconfig -a'

I tried 'iwconfig wlan0 rate 1M per instructions, but get message that this is unknown command or something like that....

If I do 'ifup wlan0', console 'goes crazy' with continual scrolling of text.....no way to stop it....have force shutdown by resetting HTC Universal.....text refers to acx and has lots of numbers on each line as it scrolls by...

Any ideas as to get WiFi working properly??

Quote
Try dmesg -n1 to stop the messages appearing on the console.  Don't do iwconfig wlan0 rate 1M until after you've connected  to the access point.  You could try adding these to your /network/interfaces, e.g.:
Code: [Select]
wlan0 inet dhcp
  pre-up iwconfig wlan0 rate 11M
  post-up iwconfig wlan0 rate 1M

Added lines to interfaces file....

Then I try 'dhclient wlan0' ..... it looks for DHCPOFFERS but says:

Code: [Select]

No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Also, what about 'iwconfig', why isn't it found??? Was it supposed to have been installed during original installation???

Any suggestions?

Quote
AC Power & USB Hub at Sametime?

Also, Is there anyway to connect the AC power to the Uni AND have the USB hub/ethernet device connected at the same time??? Would be nice to be able to do this since I will usually be near an AC power outlet either at home or at work....
Quote
The phone should charge via any powered USB connection, although not as quickly as when connected to AC.  Plug it in and type apm to see if it's charging.

Yes, it says charging....

Thanks!
Title: Htc Universal
Post by: ShiroiKuma on April 23, 2008, 08:49:09 pm
Quote from: datathief
I had some apm problems when I installed a 3800mAh battery, but once I charged and discharged it completely (to re-calibrate the charging controller) it works fine.
My /proc/apm keeps showing -1% no matter what, which is strange. Do you get normal readings? Did you let it charge and discharge in a specific fashion, or just charged overnight and then left running something?
Title: Htc Universal
Post by: datathief on April 24, 2008, 03:40:58 am
Quote from: ShiroiKuma
My /proc/apm keeps showing -1% no matter what, which is strange. Do you get normal readings? Did you let it charge and discharge in a specific fashion, or just charged overnight and then left running something?
Code: [Select]
# cat /proc/apm
1.13 1.2 0x02 0x00 0x00 0x00 97% 744 min
I didn't do anything special, just charged it fully then let it discharge completely.
Title: Htc Universal
Post by: datathief on April 24, 2008, 03:52:32 am
Quote from: ArchiMark
OK, I get it now....however, I do think that it recognizes that I've plugged something in...at least I think so..
If you
Code: [Select]
dmesg | tailafter plugging it in, do you see anything that indicates it's recognised it?

Quote
Also, what about 'iwconfig', why isn't it found??? Was it supposed to have been installed during original installation???
Ohhhh... wireless-tools isn't installed.  My fault.  Are you able to connect to the internet using a USB cable and the instructions on the wiki, so you can install wireless-tools?
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 07:20:48 am
Quote from: datathief
Quote from: ShiroiKuma
My /proc/apm keeps showing -1% no matter what, which is strange. Do you get normal readings? Did you let it charge and discharge in a specific fashion, or just charged overnight and then left running something?
Code: [Select]
# cat /proc/apm
1.13 1.2 0x02 0x00 0x00 0x00 97% 744 min
I didn't do anything special, just charged it fully then let it discharge completely.
Mine:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']$ apm

$ cat /proc/apm
1.13 1.2 0x02 0xff 0xff 0xff -1% -1 ?[/div]

What the?...
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 07:24:00 am
Quote from: datathief
Quote from: ShiroiKuma
I think the script needs to check if it's beyond the maximum SMS length and if so, then split into a number of messages and send those in succession.
It's even worse for incoming muiti-part messages:  they get completely mangled.  They seem to have some sort of extra header.  I think this is the last major missing feature  -  I'll see what I can do.
Great.

Regarding missing I'm currently implementing caller ID based on your script which queries a vcard vcf contacts file and displays the caller's name etc. in the whiptail dialog, almost finished, will be done later today probably. Will post.

Furthermore, today I also wanna get dialing from emacs working, i.e. use addressbook-el, with the same vcf file to work with contacts - add, edit, etc. and put in a keybinding that will dial the selected contact. Let's see if I can get that done today too.
Title: Htc Universal
Post by: datathief on April 24, 2008, 08:15:12 am
I'm going to attempt to converge Titchy (for the Zaurus) and Titchy Mobile (for the Uni) into one Debian repository.  For the first step I've got the Titchy X server working on the Uni.  It's a bit of a hack (because it uses EABI packages from Angstrom even though Titchy was OABI) but it's working.

I'll upload it to the wiki (here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Installing_X)).

(Has anyone else attempted to install XFCE?  Was it always so huge?  It won't fit on my 512MB SD card.)
Title: Htc Universal
Post by: ArchiMark on April 24, 2008, 11:58:12 am
Quote from: datathief
Quote from: ArchiMark
OK, I get it now....however, I do think that it recognizes that I've plugged something in...at least I think so..
If you
Code: [Select]
dmesg | tailafter plugging it in, do you see anything that indicates it's recognised it?

OK, I used my USB host cable that I use with my Zaurus and connected it to HTC and my HP USB Mini-hub with HP AC adapter to power it. Then connected up my Linksys 200M v.2.1 USB Ethernet stick to hub.

Here's what I get:

Code: [Select]
#dmesg | tail
[    64.530000] usbcore:  registered new interface driver usbserial
[    64.550000] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[    64.570000] usbserial_generic 1-1:1.0: generic converter detected
[    64.590000] usb 1-1: generic converter now attached to ttyUSB0
[    64.590000] usbserial_generic 1-1:1.0: generic converter detected
[    64.610000] usb 1-1: generic converter now attached to ttyUSB1
[    64.610000] usbcore: registered new interface driver usbserial_generic
[    64.620000] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 1533.420000] udc: USB reset
[ 1534.530000] ds2760-battery ds2760-battery.0: not enough power to charge

How does that look?

UPDATE

Hmmm...did 'ifconfig -a' and see 'lo' and 'usb0' listed.....

Then I unplugged host cable and plugged in regular USB cable to use to connect to my laptop...when I did that (and before connecting other end to laptop I got the following in console:

Code: [Select]
[  3077.570000] udc: USB reset
[  3078.020000] udc: USB reset
[  3078.210000] usb0: full speed config #1: 100mA, Ethernet Gadget, using CDC Ethernet Subset

So, is there any hope to get ethernet working???


Quote
Also, what about 'iwconfig', why isn't it found??? Was it supposed to have been installed during original installation???

Quote
Ohhhh... wireless-tools isn't installed.  My fault.  Are you able to connect to the internet using a USB cable and the instructions on the wiki, so you can install wireless-tools?

Had a feeling that was problem....just tried downloading wireless-tools from the yonggun webpage to my SD card inserted in my Fujitsu U810 and then installing it using dpkg on my HTC....it complained about dependency with 'libiw28', so wouldn't install it.....

Will try to get it installed using USB cable and your wiki instructions....


Thanks!
Title: Htc Universal
Post by: datathief on April 24, 2008, 03:04:15 pm
Quote from: ShiroiKuma
Quote
It's even worse for incoming muiti-part messages:  they get completely mangled.  They seem to have some sort of extra header.  I think this is the last major missing feature  -  I'll see what I can do.
Great.
I have multi-part messages working  -  but I've only tested with my own phone.  To try to keep the code manageable, I've taken some shortcuts  -  specifically:I think that's a reasonable trade-off for getting multi-part messages working...

Uploading now.

(Are there any important features still missing from htcunid?  What's standing in the way of a 1.0 release now?)
Title: Htc Universal
Post by: ArchiMark on April 24, 2008, 03:10:39 pm
OK, have setup USB Networking per wiki instructions using eth1 instead of eth0.....as that is my working ethernet connection on my laptop....

I've now got HTC connected to USB hub and USB hub connected to laptop and has USB ethernet device attached. I can get online OK with laptop, using eth1.

It seems like it is working OK from what I can tell....looked at info in 'ifconfig' and 'netstat' on both laptop and HTC....although only see 'lo' and 'usb0' listed on HTC.....

However, when I do 'apt-get update' after updating 'sources.list' I always get the error message below. I have tried several other sources too, so, don't think it's related to sources list....

Code: [Select]

Err http://http.debian.osuosl.org/debian lenny Release.gpg
   Temporary failure resolving 'http.debian.osuosl.org'
Reading package lists.... Done
W: Failed to fetch http://http.debian.osuosl.org/debian lenny Release.gpg
   Temporary failure resolving 'http.debian.osuosl.org'

W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems


From past experience, this usually means that I'm not really connected to net, right?

Just tried pinging my laptop from HTC and I get:

Code: [Select]
#ping -c 5 192.168.3.1
connect: network is unreachable

I do see on my laptop in ifconfig; lo, eth0, eth1, sit0, usb0 interfaces....

Any suggestions?

Thanks!
Title: Htc Universal
Post by: datathief on April 24, 2008, 03:40:00 pm
Quote from: ArchiMark
Just tried pinging my laptop from HTC and I get:

Code: [Select]
#ping -c 5 192.168.3.1
connect: network is unreachable

I do see on my laptop in ifconfig; lo, eth0, eth1, sit0, usb0 interfaces....

Any suggestions?

Thanks!
I just followed the USB network instructions (for the first time ever!) and they worked.  So I'm not sure how to help.

Check that you get the same results as me for these commands:

On the laptop:
Code: [Select]
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0


# cat /proc/sys/net/ipv4/ip_forward
1

# iptables -L FORWARD
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
ACCEPT     0    --  anywhere             anywhere

# iptables -t nat -L POSTROUTING
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        
MASQUERADE  0    --  192.168.3.0/24       anywhere

On the phone:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
          inet addr:192.168.3.3  Bcast:192.168.3.255  Mask:255.255.255.0


# route -n
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0
0.0.0.0         192.168.3.1     0.0.0.0         UG    0      0        0 usb0
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 03:51:44 pm
Quote
  • Unicode messages are split at 63 characters (instead of 70)
  • 7-bit ASCII messages are split at 144 characters (instead of 160)
I think that's a reasonable trade-off for getting multi-part messages working...
Probably not a significant drawback now...

I'll test shortly and report.

Quote
(Are there any important features still missing from htcunid?  What's standing in the way of a 1.0 release now?)
I think the caller ID which brings up the callers name, if you have a vcard database. I'm almost finished, just two final bugs with getting it to display properly in your whiptail script.

Should be posted shortly - today.

That's what I think is missing from 1.0.

Also the reverse one, i.e. dialing from a vcard. I'm gonna implement this to work with emacs and addressbook-el, since that's what I care about. Generally though you could reword the script to let's say when "htcunid dial" is called without a number, whiptail would query the vcard database in the same logic that my script for caller ID does, and bring you a pop up menu of all names to call, you'd then enter the one to call, it'd query again for numbers in his vcard and then you'd select the number and call.

This is the last missing part I think to make it really phone like useable.
Title: Htc Universal
Post by: ArchiMark on April 24, 2008, 04:07:06 pm
Quote from: datathief
I just followed the USB network instructions (for the first time ever!) and they worked.  So I'm not sure how to help.

Check that you get the same results as me for these commands:

On the laptop:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0


# cat /proc/sys/net/ipv4/ip_forward
1

# iptables -L FORWARD
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
ACCEPT     0    --  anywhere             anywhere

# iptables -t nat -L POSTROUTING
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        
MASQUERADE  0    --  192.168.3.0/24       anywhere

On the phone:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
          inet addr:192.168.3.3  Bcast:192.168.3.255  Mask:255.255.255.0


# route -n
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0
0.0.0.0         192.168.3.1     0.0.0.0         UG    0      0        0 usb0


Thanks, datathief....here's what I see on my equipment, some differences, have also included eth1 since that's what I used in USB Networking setup and seems to me to be active.

Note differences in address in 'ifconfig' listing and nothing listing on HTC for 'route -n' for example....

On the laptop:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr
                  BROADCAST MULTICAST  MTU:1500 Metric:1
                  RX Packets:0 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:0 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:0 (0.0b)  TX bytes:0 (0.0b)

eth1      Link encap:Ethernet  HWaddr

                  inet addr:10.xxx.xx.74 Bcast:10.241.xx.255  Mask: 255.255.255.0
                  inet6 addr: fe80::21d:7eff:fe00:6857/64 Scope:Link
                  UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
                  RX Packets:6095 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:476 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:1649656 (1.5 Mib)  TX bytes:33771 (32.9 Kib)



# cat /proc/sys/net/ipv4/ip_forward
1

# iptables -L FORWARD
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
ACCEPT     0    --  anywhere             anywhere

# iptables -t nat -L POSTROUTING
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        
MASQUERADE  0    --  192.168.3.0/24       anywhere


On the phone:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
                  UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
                  RX Packets:74 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:256 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:5448 (5.3 Kib)  TX bytes:67984 (66.3 Kib)

        
# route -n
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
Title: Htc Universal
Post by: datathief on April 24, 2008, 04:12:02 pm
Quote from: ShiroiKuma
Also the reverse one, i.e. dialing from a vcard. I'm gonna implement this to work with emacs and addressbook-el, since that's what I care about. Generally though you could reword the script to let's say when "htcunid dial" is called without a number, whiptail would query the vcard database in the same logic that my script for caller ID does, and bring you a pop up menu of all names to call, you'd then enter the one to call, it'd query again for numbers in his vcard and then you'd select the number and call.
I'll have a go once your caller-ID script is done.

When I have the time, I'll tidy up a few things (outputting "0" for a successful operation isn't very user-friendly), and call it 1.0.  Then I can start on the new and innovative stuff:
  • Different ringtones for different times of day.
  • Check my e-mail for invitations, and be silent if I'm in a meeting.
  • ...
That's all I can think of at the moment
Title: Htc Universal
Post by: datathief on April 24, 2008, 04:16:18 pm
Quote from: ArchiMark
On the laptop:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr
                  BROADCAST MULTICAST  MTU:1500 Metric:1
                  RX Packets:0 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:0 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:0 (0.0b)  TX bytes:0 (0.0b)
The interface is not marked "UP", and does not have an IP address.  Try:
ifconfig usb0 192.168.3.1 up
Quote
On the phone:
Code: [Select]
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
                  UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
                  RX Packets:74 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:256 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:5448 (5.3 Kib)  TX bytes:67984 (66.3 Kib)
The interface is marked "UP", but doesn't have an IP address. Try:
ifconfig usb0 192.168.3.3
Quote
Code: [Select]
# route -n
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
No route.  Try:
Code: [Select]
route add default gw 192.168.3.1
Title: Htc Universal
Post by: ArchiMark on April 24, 2008, 04:27:17 pm
Quote from: datathief
Quote from: ArchiMark
On the laptop:
Code: [Select]
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr
                  BROADCAST MULTICAST  MTU:1500 Metric:1
                  RX Packets:0 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:0 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:0 (0.0b)  TX bytes:0 (0.0b)
The interface is not marked "UP", and does not have an IP address.  Try:
ifconfig usb0 192.168.3.1 up
Quote
On the phone:
Code: [Select]
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr   
                  UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
                  RX Packets:74 errors:0 dropped:0 overruns:0 frame:0
                  TX Packets:256 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 rxqueuelen:1000
                  RX bytes:5448 (5.3 Kib)  TX bytes:67984 (66.3 Kib)
The interface is marked "UP", but doesn't have an IP address. Try:
ifconfig usb0 192.168.3.3
Quote
Code: [Select]
# route -n
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
No route.  Try:
Code: [Select]
route add default gw 192.168.3.1

OK, just did what you suggested on laptop and HTC....now my config looks like yours...

Also, tried pinging laptop from HTC and now I can ping OK....  

However, I still get same error message when trying 'apt-get'.....  

[size=]* UPDATE 2! *[/size][/b]

Just checked sources list again and it seems OK...

At home now and tried to go online on laptop and now it connects OK again....maybe the fact that I shutdown and rebooted laptop did something??

So, tried 'apt-get' again on HTC and still no go....

Tried pinging laptop from HTC again and it pings OK....

Seems like I'm so close, but yet so far somehow......


 


????????

Thanks for any and all help!
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 04:28:47 pm
Quote from: datathief
I'll have a go once your caller-ID script is done.
If you're online now, it's almost ready, it does the ID fine. Even when I call the whiptail script by hand, it works, just when I really send an sms and receive it on the Uni, it doesn't display the ID.

I could upload now, if you wanna check it out and try to find the error, I'm sure it's a little thing.

If not, I'll keep trying, I should find the culprit soon and then upload.
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 04:31:01 pm
Quote from: datathief
That's all I can think of at the moment
One more thing that I thought of - enable by an option passed to htcunid sendsms, now at least, to confirm message delivery. Or some setting to permanently request it or not.
Title: Htc Universal
Post by: datathief on April 24, 2008, 06:23:23 pm
Quote from: ArchiMark
Just tried to go online using web browser on laptop and it doesn't connect now...
You probably just need to
Code: [Select]
ifdown eth1
ifup eth1
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 06:31:50 pm
Took two more hours and the callerid script is ready and working, will upload in a couple of minutes.

EDIT: So the script is attached.

Unzip the file to your home directory. It'll create a .phone subdirectory there. For the sake of simplicity I've assumed your home is /root If the home directory is something else, then edit ~/.phone/callerid and ~/.phone/whiptail and right at the top change the declaration of HOMEDIR.

The .phone/whiptail is the modified whiptail script which needs to be symlinked into /etc/htcunid/event.d

You'll note that it has call logging too - that was because I didn't know about your logging and hacked it before too to do this logging to my liking. But that's not associated with caller id.

Now, the way it works. It expects a standard vcard file with your contacts in ~/.phone/addressbook.vcf If you have it some other place, change the location declaration in ~/.phone/callerid

Now, when a call is received or made, and an SMS received or made, it'll get the callers details and display them in the whiptail dialog. If you don't a contact with the number in your vcard addressbook, it displays "Unknown caller" as the caller.

Please test and report.

EDIT2: The scripts assume you have sed, grep, and gawk installed.

The script is in a couple of files as you see. I'm sure it could be merged, but I did it as a quick hack and wasn't sure specifically about the awk part and so, when merged into one.
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 07:04:08 pm
Quote from: ShiroiKuma
Quote
  • Unicode messages are split at 63 characters (instead of 70)
  • 7-bit ASCII messages are split at 144 characters (instead of 160)
I think that's a reasonable trade-off for getting multi-part messages working...
I'll test shortly and report.
The multipart messages work without problems.
Title: Htc Universal
Post by: ArchiMark on April 24, 2008, 07:08:03 pm
Quote from: datathief
Quote from: ArchiMark
Just tried to go online using web browser on laptop and it doesn't connect now...
You probably just need to
Code: [Select]
ifdown eth1
ifup eth1


Thanks again, just tried that on laptop, but still no go, can't connect now....again, was working OK this morning....weird.....

Also, tried:

Code: [Select]
#dhclient eth1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

 

[size=]* UPDATE (1) 4/24/08 Evening *[/size][/b]

Just checked sources list again and it seems OK...

At home now and tried to go online on laptop and now laptop connects OK again....

Maybe since I shutdown and rebooted laptop it did something??

So, tried 'apt-get' again on HTC and still no go....

Tried pinging laptop from HTC again and it pings OK....

[size=]* UPDATE (2) GOT IT WORKING!!!!!!!! *[/size][/b]

1) I re-entered the USB Networking commands into my HTC

2) Since I'm at home, not office now, I changed the nameserver address in /etc/resolv.conf

3) Tried 'apt-get' and VOILA!!! got online.....

[size=]* UPDATE (3) GOT WIFI !!!!!!!! *[/size][/b]

Got WiFi working and connected to my home WiFi network....

Now onto X!!!

 

Geez......

Thanks again, datathief for ALL YOUR HELP!

IT IS TRULY APPRECIATED!!!!!!
Title: Htc Universal
Post by: webdork on April 24, 2008, 07:18:13 pm
Fisrt let me say, datathief... YOU ARE THE MAN!!!!!!!!!!!! I own a  small network security company and I'm *nix freak, and have struggled with Angstrom on the Uni, so a full Debian comes as an absolute Godsend.

One quick question... I see that there is an xserver-titchy package on the neilandtheresa wiki... does it include xdm or do I need to install it from apt? (I'm loading the root filesystem as we speak).

On another note, the TI acx100 wifi driver truly stinks for the Uni, which I'm sure anyone else that has ran *nix on it knows. The developers of the driver port for the Uni don't seem to be involved anymore, so my question is, is there anyone else here who has the technical skillset, time and motivation to clean up the mem.c and cs.c portions of the wifi driver? There is a new acx driver out since the 2007 driver and I've been told that it could very well be possible to implement the mac80211 driver (allowing also for WPA capability).

This is my first port here and definitely not my last!!!

Thanks again

EDIT: disregard the xdm part... my thread view only showed the first few posts
Title: Htc Universal
Post by: webdork on April 24, 2008, 10:15:31 pm
Ok, so I've got icewm running but now I can't get the touchsreen calibrated. It appears to work as it will jump to the top right when I touch the screen in icewm.

ts_calibrate gives me ts_open: no such file...etc

Any clues on how to get it calibrated???

EDIT: If anyone can post their /etc/pointrecal I would be endebted!
Title: Htc Universal
Post by: ShiroiKuma on April 24, 2008, 10:37:12 pm
I've created the emacs vcard dialing and messaging frontend.

It's based on addressbook-el and provides comfortable contacts management, manipulation, all in the standard vcf vcard format, and from the addressbook you dial directly and send SMS's.

I'll be improving it further to provide SMS logs, history for contact etc.

So if you spot any problems, or have improvements, post here.

There are still currently a few shortcomings, residual from the original addressbook-el, i.e. when adding a telephone, you don't get a dialog for cell, home, or work, only get to chose cell. I'll fix these as I get to them, if you fix them sooner, post.

So, unpack the contents to /usr/share/emacs/site-lisp/

Add (require 'keitai) to your .emacs file.

Then run it with M-x keitai

It, just like the callerid script above, assumes you have your vcard contacts file located in ~/.phone/addressbook.vcf If it's in some other place you can edit keitai.el and change it.

You'll see the list with all your contacts, documentation is scarce, but it's easy to understand how to use it. In the top menu, the keybindings are:

  (define-key addrbook-summary-mode-map "n" 'addrbook-summary-next-contact)
  (define-key addrbook-summary-mode-map "p" 'addrbook-summary-previous-contact)
  (define-key addrbook-summary-mode-map (kbd "<down>") 'addrbook-summary-next-contact)
  (define-key addrbook-summary-mode-map (kbd "<up>") 'addrbook-summary-previous-contact)
  (define-key addrbook-summary-mode-map (kbd "RET") 'addrbook-summary-show-contact)
  (define-key addrbook-summary-mode-map "b" 'addrbook-bury)
  (define-key addrbook-summary-mode-map "q" 'addrbook-quit)
;  (define-key addrbook-summary-mode-map "c" 'addrbook-call)
  (define-key addrbook-summary-mode-map "a" 'addrbook-create-card)
  (define-key addrbook-summary-mode-map "i" 'addrbook-import-vcard)
  (define-key addrbook-summary-mode-map "x" 'addrbook-export-vcard)
  (define-key addrbook-summary-mode-map "m" 'addrbook-send-email)
  (define-key addrbook-summary-mode-map "s" 'addrbook-save-cards)

This is just a copy from the file, but you can see what the keybindings are, if you press s it will save the addressbook, if you hit a you'll add a new contact etc.

To view a contact, hit enter:

Here the keybindings are:

      (define-key addrbook-contact-mode-map "c" 'addrbook-call)
      (define-key addrbook-contact-mode-map "m" 'addrbook-sms)
      (define-key addrbook-contact-mode-map "C" 'addrbook-create-card)
      (define-key addrbook-contact-mode-map "D" 'addrbook-delete-card)
      (define-key addrbook-contact-mode-map "n" 'addrbook-next-contact)
      (define-key addrbook-contact-mode-map "p" 'addrbook-previous-contact)
      (define-key addrbook-contact-mode-map "s" 'addrbook-save-cards)
      (define-key addrbook-contact-mode-map "x" 'addrbook-export-card)
      (define-key addrbook-contact-mode-map "b" 'addrbook-bury)
      (define-key addrbook-contact-mode-map "q" 'addrbook-quit)
      (define-key addrbook-contact-mode-map "e" 'addrbook-contact-edit-attribute)
      (define-key addrbook-contact-mode-map (kbd "SPC") 'addrbook-contact-toggle-hide-show-group)
      (define-key addrbook-contact-mode-map (kbd "TAB") 'addrbook-contact-cycle-groups)
      (define-key addrbook-contact-mode-map "d" 'addrbook-contact-delete-attribute)
      (define-key addrbook-contact-mode-map "a" 'addrbook-contact-add-attribute)
      (define-key addrbook-contact-mode-map "t" 'addrbook-contact-add-attribute-type)
      (define-key addrbook-contact-mode-map "r" 'addrbook-contact-remove-attribute-type)
      (define-key addrbook-contact-mode-map "M" 'addrbook-send-email)
      (define-key addrbook-contact-mode-map "H" 'addrbook-contact-hide-all-groups)
      (define-key addrbook-contact-mode-map "S" 'addrbook-contact-show-all-groups)
      (define-key addrbook-contact-mode-map "h" 'addrbook-summarize)

You can call and send SMS from here, currently not from the top menu.

To call, currently still, you need to move the cursor to the row where the number you wanna call is, then hit c
To send an SMS, move to the row with the number, and hit m, you'll be asked for the SMS text and then it'll send it.

To return to the top menu, to view the cards, hit h.

Please not, that currently when you add a new contact and save the addressbook with s then go back to the top menu, it doesn't update the view, so you need to close the addressbook buffers and run keitai again. This should be fixed in the future.
Title: Htc Universal
Post by: datathief on April 25, 2008, 03:35:44 am
Quote from: webdork
Ok, so I've got icewm running but now I can't get the touchsreen calibrated. It appears to work as it will jump to the top right when I touch the screen in icewm.

ts_calibrate gives me ts_open: no such file...etc

Any clues on how to get it calibrated???

EDIT: If anyone can post their /etc/pointrecal I would be endebted!
If you're using xserver-titchy, deleting /etc/ts.conf triggers recalibration when you next start X.  Otherwise, try
Code: [Select]
TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
Title: Htc Universal
Post by: datathief on April 25, 2008, 03:41:33 am
Quote from: ShiroiKuma
Took two more hours and the callerid script is ready and working, will upload in a couple of minutes.

EDIT: So the script is attached.
Nice.  I'll take a look at it today.

Quote
The script is in a couple of files as you see. I'm sure it could be merged, but I did it as a quick hack and wasn't sure specifically about the awk part and so, when merged into one.
I might try to merge the caller ID bit into one script  -  that way it could be used by my call logging script, etc.
Title: Htc Universal
Post by: ShiroiKuma on April 25, 2008, 04:03:48 am
Quote from: datathief
I might try to merge the caller ID bit into one script  -  that way it could be used by my call logging script, etc.
I'm gonna focus on improving the keitai package for emacs, am excited about it's possibilities. It's really easy now to implement for one key keybindings different stats, i.e. you'll be looking at a contact's vcard, one key a quickly you'll have all messages received from him in front of you, or a full sms conversation, or the record of all calls, etc.

The possibilities are broad and it can be quite powerful. And yet simple, it'll stay a standard vcard file, so no import-export issues... Great.
Title: Htc Universal
Post by: ShiroiKuma on April 26, 2008, 03:20:32 am
I have two questions, regarding suspend and mplayer.

You've said, datathief, you use screen's timeout feature to suspend, I've installed the ipaq-sleep package from the yonggun page, since I need it to timeout and sleep in x. The ipaq-sleep daemon is running, however it doesn't suspend. Anyone using this, or any other method?

Secondly, playing movies: I want to achieve fullscreen with the best quality movies possible. This has been discussed here at OESF many times, but perhaps in this case again it's peculiar to the Uni.

I've found out that installing mplayer from debian feeds breaks audio playback in it, concretely you cannot increase/decrease the volume. The mplayer package from yonggun's site works.

Now my thinking is, for best performance in X:

1. Unrotate with xrandr -o normal.
2. Overclock to the max.
3. Play a movie, for this it has to be reencoded rotated 90 degrees.

Unrotating would allow faster playback, since processing speed is not wasted on rotation.

Or even exiting X completely maybe a better alternative and using fbdev access.

So, regarding overclocking, is anyone using the overclockpy package from yonggun's site, or doing it any other way? Maybe just a shell script: overclock...play...overclock back down. What is the easiest way?

For playing a movie, what is the best mencoder encoding option? I'm experimenting with different ones.

So far I've been able to play 320x240 movies fine outside of X with fbdev, however these are not maximized to full screen.

640x480 might be possible with overclock and further tailor-made encodings, sometimes setting the audio sampling rate to 48000 helps, sometimes to 44100, I've even seen references to 22050. What's the best in this case, and further options?

If 640x480 is not possible, how to encode 320x240? And more importantly how to play them then, so that they are maximized and don't play as a small box in a maximized black frame?
Title: Htc Universal
Post by: ShiroiKuma on April 26, 2008, 03:51:42 am
Quote from: ZDevil
Hoho ... I am reading the chapter in the Service Manual (CONFIDENTIAL) on how to dismantle the device. It's so well-written and idiot-proof!
I've got a very cheap new replacement black case and keyboard (around ~EUR 15), together with a beefy batter, for my arriving 2nd MDA Pro. So it will look brand new and cool again.
Zdevil, can you share with me the manual. I want to tighten the central screw I was told is in the main swivel, since mine is a little loose, and don't want to take it into service just for that. So would like to take a look at how to dismantle it.
Title: Htc Universal
Post by: wolfy on April 26, 2008, 02:05:32 pm
Hallo
Please help me  
I formated one sdcard 2Gb whith ext2 Lin partition for Debian
I download rootfs.tar.gz and i unpacked in my SD card:
I copy:   haret.exe, zImage and default.txt in storage from mz htc universal
After I run haret.exe. Linux should boot but stoped in console mode and showme only:

htcuni:/#

Where  I login whit root

Haw to start Debian Linux in my HTC Uni? This Debian not have a grafics interface? Please some help
Title: Htc Universal
Post by: ShiroiKuma on April 26, 2008, 02:33:01 pm
Quote from: ShiroiKuma
If 640x480 is not possible, how to encode 320x240? And more importantly how to play them then, so that they are maximized and don't play as a small box in a maximized black frame?
So I'm experimenting with it, it seems sound is the biggest problem. I can play 640x480 movies without sound smooth with no glitches. So have been trying different settings for mencoder to decrease the sound taxation of the processor, so far they don't seem to be making a difference. I've tried with the three sampling rates, also have decreased the CBR to 64, but can't play the 640x480 movie. Also haven't found a fullscreen option for 320x240 so far.
Title: Htc Universal
Post by: ShiroiKuma on April 26, 2008, 02:36:05 pm
Also a problem with suspend. Unfortunatelly, all the outside keys, i.e. the camera, light, volume and mic are still active when suspended, therefore my Uni is almost always on anyway. When I suspend it, put it in the coat's pocket, one of these keys gets pressed and it comes on.

The internal keyboard however is not active while suspended, only the external keys and the direction pad under the display. How can I turn the outside keys off when suspended, with the exception of the power buton?
Title: Htc Universal
Post by: ArchiMark on April 26, 2008, 08:45:01 pm
Quote from: wolfy
Hallo
Please help me  
I formated one sdcard 2Gb whith ext2 Lin partition for Debian
I download rootfs.tar.gz and i unpacked in my SD card:
I copy:   haret.exe, zImage and default.txt in storage from mz htc universal
After I run haret.exe. Linux should boot but stoped in console mode and showme only:

htcuni:/#

Where  I login whit root

Haw to start Debian Linux in my HTC Uni? This Debian not have a grafics interface? Please some help


Wolfy,

You should boot to a line where it has a login prompt. I type in 'root' to login....no password neede.

With this install, there is no graphics interface, just console.

On titchy mobile website, there is now a titchy xserver file you can download and install. Then you can install a window manager of your choice such as IceWM, XFCE4, etc....to have the graphic interface you are looking for.

HTH,

Mark
Title: Htc Universal
Post by: wolfy on April 27, 2008, 01:11:34 am
OK, I understand, I installed xserver.deb from titchy
pkgt -i xserver.deb
now haw to start x?
is need to install ICEWM or KDE or someting? window manager?
haw to do this?
please explain me some details
Title: Htc Universal
Post by: webdork on April 27, 2008, 02:59:18 am
Quote from: datathief
If you're using xserver-titchy, deleting /etc/ts.conf triggers recalibration when you next start X.  Otherwise, try
Code: [Select]
TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
Excellent... I just returned home from a trip this evening (and left my charger @ home while I was out of town). I'll give it a go as soon as I get my battery powered back up and report back. Once again @ Datathief - thanx!!!
Title: Htc Universal
Post by: datathief on April 27, 2008, 04:34:32 am
Quote from: ShiroiKuma
Also a problem with suspend. Unfortunatelly, all the outside keys, i.e. the camera, light, volume and mic are still active when suspended, therefore my Uni is almost always on anyway. When I suspend it, put it in the coat's pocket, one of these keys gets pressed and it comes on.

The internal keyboard however is not active while suspended, only the external keys and the direction pad under the display. How can I turn the outside keys off when suspended, with the exception of the power buton?
I've been trying to find a solution for this.  I've used devmem2 to change the CPU registers that control what can wake it, but it seems the kernel resets them on suspend.  We may need to patch the kernel.
Title: Htc Universal
Post by: ShiroiKuma on April 27, 2008, 09:17:51 am
Quote from: datathief
I've been trying to find a solution for this.  I've used devmem2 to change the CPU registers that control what can wake it, but it seems the kernel resets them on suspend.  We may need to patch the kernel.
Well the kernel should be rebuilt anyhow, it's on my next-steps list anyway, but likely I'm gonna get to that only in a matter of months, if I set-up the cross-dev etc. If you're planning to do it, please consider to include support for dm/cryptsetup into the kernel, so it supports LUKS encrypted volumes, especially on a mobile device this is somewhat important.
Title: Htc Universal
Post by: ArchiMark on April 27, 2008, 10:04:04 am
Quote from: wolfy
OK, I understand, I installed xserver.deb from titchy
pkgt -i xserver.deb
now haw to start x?

usually at prompt do:

Code: [Select]
#startx

Quote
is need to install ICEWM or KDE or someting? window manager?

Yes....

Quote
haw to do this?
please explain me some details

at prompt do:
Code: [Select]
#apt-get install icewm
 

You might want to check out basic Debian info on the OESF forums Debian section and the OESF wiki and on other Debian sites.... you are doing basic setup stuff that you would do for setting up Debian on any other computer more or less....
Title: Htc Universal
Post by: wolfy on April 27, 2008, 11:57:34 am
OK thanks for your reply
Title: Htc Universal
Post by: ShiroiKuma on April 27, 2008, 12:36:36 pm
Datathief, can you specify how you got pppd on demand setup.

I've never setup on-demand ppp, so am not sure of all that is necessary.

You've added demand to /etc/ppp/options? What else? Do you do:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']  route del default
  route add default ppp0

  echo 1 > /proc/sys/net/ipv4/ip_dynaddr[/div]

How do you start pppd, with the command line in your wiki, or with pppd :127.0.0.1
Title: Htc Universal
Post by: datathief on April 27, 2008, 07:23:26 pm
Quote from: ShiroiKuma
Quote from: datathief
I've been trying to find a solution for this.  I've used devmem2 to change the CPU registers that control what can wake it, but it seems the kernel resets them on suspend.  We may need to patch the kernel.
I've added an apmd script to the wiki (under 'Resume on Close').  It's a hack, like all the other uses of devmem2, but it works for me.

Quote
Well the kernel should be rebuilt anyhow, it's on my next-steps list anyway,
There are instructions at http://handhelds.org/moin/moin.cgi/UniversalKernel (http://handhelds.org/moin/moin.cgi/UniversalKernel)
Title: Htc Universal
Post by: datathief on April 27, 2008, 07:31:24 pm
Quote from: ShiroiKuma
Datathief, can you specify how you got pppd on demand setup.

I've never setup on-demand ppp, so am not sure of all that is necessary.

You've added demand to /etc/ppp/options? What else? Do you do:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']  route del default
  route add default ppp0

  echo 1 > /proc/sys/net/ipv4/ip_dynaddr[/div]

How do you start pppd, with the command line in your wiki, or with pppd :127.0.0.1
I use:
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth demand connect /bin/true defaultroute idle 60 holdoff 3Adding "demand" doesn't work without "connect", so I use "connect /bin/true" which doesn't actually do anything.  I used "idle 60" to close the connection after a minute; "holdoff 3" probably isn't needed.
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 12:03:41 am
Quote from: ShiroiKuma
So I'm experimenting with it, it seems sound is the biggest problem. I can play 640x480 movies without sound smooth with no glitches. So have been trying different settings for mencoder to decrease the sound taxation of the processor, so far they don't seem to be making a difference. I've tried with the three sampling rates, also have decreased the CBR to 64, but can't play the 640x480 movie. Also haven't found a fullscreen option for 320x240 so far.
I've achieved high quality high performance video playback at 640x480. Script details at http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AHigh%20quality%20640x480%20video%20in%20mplayer%20on%20the%20Universal)
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 01:00:53 am
Quote from: datathief
(Are there any important features still missing from htcunid?  What's standing in the way of a 1.0 release now?)
I think one more thing is missing still currently.

There should be a query command to inquire about the status of the connetion, i.e. if connected to the network, how strong etc. You know like sometimes you're in buildings where there is no signal etc., and if the phone is disconnected, you should see if it's because of a lack of network availability or something else.
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 01:05:04 am
Quote from: datathief
I've added an apmd script to the wiki (under 'Resume on Close').  It's a hack, like all the other uses of devmem2, but it works for me.
This works in the sense that the keys don't wake the phone up anymore, this is good. However, once suspended with this script in place, the phone is not woken up by calls, and even if resumed, doesn't accept calls anymore.

EDIT: My bad, it seems the fault is not with the script. Rather I've rebuilt the kernel according to the instructions above to include dm support. It works, I can mount cryptsetup LUKS volumes, which is great, however it has the above suspend htcunid problem, as opposed to the original kernel.

But how can this be, I didn't mess with anything aside the dm and crypt support.

Specifically didn't touch the Power Management Options, left them set as they were, i.e. Power  Management support on,  Legacy Power Management  API and  Power Management Debug Support off, and Dynamic Power Management Debug Support and Driver model files on, and Advanced Power Management Emulation on.

Any ideas?

EDIT: Haven't figured out the reason for the error, however I've rebuilt the crypt parts as modules, and can use them now with the original kernel, which doesn't get stuck on htcunid when suspended. So this'll do for the time being.
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 03:53:55 am
Quote from: ShiroiKuma
I think one more thing is missing still currently.
Oh, and another one is missing I think. And that is the ability to mute the ringtone, i.e. kill mikmod or mplayer, whichever you have playing the ringtune, while an incoming call is ringing on your phone. This would ideally be mapped to the outside volume key, whereby if you don't want to hang up, just silence it, you move the volume key and it goes silent, while it's still ringing. I.e. you're in a meeting, the ringer is on, it rings, you silence it, and can walk out and still pick it up, without it ringing all the way.
Title: Htc Universal
Post by: datathief on April 28, 2008, 04:44:56 am
Quote from: ShiroiKuma
I've rebuilt the kernel according to the instructions above to include dm support. It works, I can mount cryptsetup LUKS volumes, which is great, however it has the above suspend htcunid problem, as opposed to the original kernel.
I tried to build the kernel to fix the problem with the keyboard after suspend, and had problems with the phone part.  I just assumed I'd done something wrong, and I haven't had enough motivation to try again yet.
Title: Htc Universal
Post by: datathief on April 28, 2008, 04:50:18 am
Quote from: ShiroiKuma
Oh, and another one is missing I think. And that is the ability to mute the ringtone, i.e. kill mikmod or mplayer, whichever you have playing the ringtune, while an incoming call is ringing on your phone. This would ideally be mapped to the outside volume key
I think we would need a hotkey tool to do this.  i've built actkbd and put it on the wiki (under "Special Keys"), but I haven't tried it out yet.
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 05:49:14 am
Quote from: datathief
I think we would need a hotkey tool to do this.  i've built actkbd and put it on the wiki (under "Special Keys"), but I haven't tried it out yet.
Yeah, you're right, that should be easy, just kill the mplayer process via actkbd. I've been meaning to try it out. Perhaps today.
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 05:51:28 am
BTW, I haven't checked the ipaq-sleep script to see if it could be fixed for the Uni, however, there is currently the display time-out isn't there. I.e. after a certain period of inactivity, the display goes blank, didn't get a chance to check what causes it, perhaps that could be connected with suspend, so that in X, without using screen, you could suspend after a period of inactivity. Or did you mention the keyboard light out in a prior post?
Title: Htc Universal
Post by: p3t3r on April 28, 2008, 06:26:46 am
Hi,
I have got my Universal for some time now and I am very happy about this Debian port with easy to install rootfs.
I installed the rootfs (and updated htcunid), but i have some problems:
- when i receive a phonecall, my universal vibrates once, which is not enough to realize it (for me)
- I placed your whiptail script in /etc/htcunid/event.d; installed whiptail, but there is nothing "popping up" (and I don't know whether I understood what whiptail does correctly) on event (call, sms).
- i tried to install X, as I read other people did, I used xserver-titchy, and some other packages via apt-get; but i have no working Xserver yet, as there are many packages missing... "startx" gives no results - as there is no startx in any (/usr)/(s)bin.
It would be really nice to have an easy to understand howto for that, or at least a working (meaning that these packages exist) list of packages (I would like to use X with some icewm or GPE/matchbox, because websurfing, document viewing and editing is nicer then).
 
Sorry if I ask newbie questions, but somebody has got to ask them.
Title: Htc Universal
Post by: datathief on April 28, 2008, 06:53:15 am
Quote from: ShiroiKuma
Quote from: datathief
(Are there any important features still missing from htcunid?  What's standing in the way of a 1.0 release now?)
I think one more thing is missing still currently.

There should be a query command to inquire about the status of the connetion, i.e. if connected to the network, how strong etc. You know like sometimes you're in buildings where there is no signal etc., and if the phone is disconnected, you should see if it's because of a lack of network availability or something else.
This is my feature list for the next version, then:This could take a while...
Title: Htc Universal
Post by: ShiroiKuma on April 28, 2008, 08:27:27 am
Quote from: p3t3r
It would be really nice to have an easy to understand howto for that, or at least a working (meaning that these packages exist) list of packages (I would like to use X with some icewm or GPE/matchbox, because websurfing, document viewing and editing is nicer then).
Sorry if I ask newbie questions, but somebody has got to ask them.
http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20X%20in%20Debian%20on%20the%20Universal)
Title: Htc Universal
Post by: datathief on April 28, 2008, 10:03:58 am
Quote from: ShiroiKuma
BTW, I haven't checked the ipaq-sleep script to see if it could be fixed for the Uni, however, there is currently the display time-out isn't there. I.e. after a certain period of inactivity, the display goes blank, didn't get a chance to check what causes it, perhaps that could be connected with suspend, so that in X, without using screen, you could suspend after a period of inactivity. Or did you mention the keyboard light out in a prior post?
As far as I can tell, /proc/interrupts is the thing to watch.  It should be really easy to write a tool (even a shell script could do it) to pick out the interesting lines from /proc/interrupts, wait a minute, then see if they've changed  -  and if they don't change for a few minutes, run apm --suspend.
Title: Htc Universal
Post by: datathief on April 28, 2008, 10:22:29 am
Quote from: p3t3r
Hi,
I have got my Universal for some time now and I am very happy about this Debian port with easy to install rootfs.
I installed the rootfs (and updated htcunid), but i have some problems:
- when i receive a phonecall, my universal vibrates once, which is not enough to realize it (for me)
- I placed your whiptail script in /etc/htcunid/event.d; installed whiptail, but there is nothing "popping up" (and I don't know whether I understood what whiptail does correctly) on event (call, sms).
You need to make sure the script is executable, e.g.:
Code: [Select]
chmod ugo+x /etc/htcunid/event.d/whiptail
Quote
- i tried to install X, as I read other people did, I used xserver-titchy, and some other packages via apt-get; but i have no working Xserver yet, as there are many packages missing... "startx" gives no results - as there is no startx in any (/usr)/(s)bin.
You can use http://packages.debian.org/ (http://packages.debian.org/) to find startx.  Scroll down to "Search the contents of packages", enter "startx", change "Distribution" to "testing", and click "Search".  You'll find that startx is in the package "xinit".

If you have a working internet connection on your phone (use the instructions at http://wiki.neilandtheresa.co.uk/Titchy_Mo...ips/USB_Network (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network) for a nice fast internet connection), you can use:
Code: [Select]
apt-get update
apt-get install xinit

Quote
It would be really nice to have an easy to understand howto for that, or at least a working (meaning that these packages exist) list of packages (I would like to use X with some icewm or GPE/matchbox, because websurfing, document viewing and editing is nicer then).
You can install any of these  -  check out http://packages.debian.org/ (http://packages.debian.org/) to find them, and use apt-get to install them.

Update: I installed GPE/matchbox as follows (with xserver-titchy already installed, and with a working internet connection):
Code: [Select]
apt-get update
apt-get install xinit gpe
echo matchbox-session >~/.xinitrc
startx
Title: Htc Universal
Post by: p3t3r on April 28, 2008, 01:42:40 pm
Thanks for your help; but dpkg shows error while processing x-yonggun and xserver-kdrive-fbdev.
I tried to run ts_calibrate, error: ts_open: No such file or directory

Any ideas?

Quote from: ShiroiKuma
Quote from: p3t3r
It would be really nice to have an easy to understand howto for that, or at least a working (meaning that these packages exist) list of packages (I would like to use X with some icewm or GPE/matchbox, because websurfing, document viewing and editing is nicer then).
Sorry if I ask newbie questions, but somebody has got to ask them.
http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20X%20in%20Debian%20on%20the%20Universal)
Title: Htc Universal
Post by: p3t3r on April 28, 2008, 04:19:33 pm
Thank you for your explanations, datathief (and your work on HTC Universal) - i had a USB connection before, and it was quite simple to get GPE to work with your instructions - though it looks like as it is in no-touchscreenmode - but at least it is usable.

edit: After deleting ts.conf and recalibrating screen it works. Great. Thanks a lot!
Title: Htc Universal
Post by: ShiroiKuma on April 29, 2008, 03:17:42 am
Quote from: p3t3r
Thanks for your help; but dpkg shows error while processing x-yonggun and xserver-kdrive-fbdev.
I tried to run ts_calibrate, error: ts_open: No such file or directory
What error does it give you? This is how I installed it without any probs. And it is fully touch-screen-working et al.
Title: Htc Universal
Post by: ShiroiKuma on April 29, 2008, 03:49:20 am
Quote from: datathief
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth demand connect /bin/true defaultroute idle 60 holdoff 3Adding "demand" doesn't work without "connect", so I use "connect /bin/true" which doesn't actually do anything.  I used "idle 60" to close the connection after a minute; "holdoff 3" probably isn't needed.
Does it mean you don't use /etc/ppp/options i.e. didn't modify these, so that it only gets arguments from the commandline? Also you don't need to do the echo and modify the defaultroute?
Title: Htc Universal
Post by: datathief on April 29, 2008, 04:49:46 am
Quote from: ShiroiKuma
Quote from: datathief
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth demand connect /bin/true defaultroute idle 60 holdoff 3Adding "demand" doesn't work without "connect", so I use "connect /bin/true" which doesn't actually do anything.  I used "idle 60" to close the connection after a minute; "holdoff 3" probably isn't needed.
Does it mean you don't use /etc/ppp/options i.e. didn't modify these, so that it only gets arguments from the commandline? Also you don't need to do the echo and modify the defaultroute?
You can add the options to /etc/ppp/options if you prefer.  I haven't changed /etc/ppp/options (I will, one day, so that ifup works).

The defaultroute option causes pppd to set the default route, so you don't need to do that.  You do need to set ip_dynaddr though.
Title: Htc Universal
Post by: p3t3r on April 29, 2008, 04:59:47 am
Need TUN-Module

I just tried to log into my universitys cisco secured network using vpnc, but I miss the TUN-Module.
Just if anybody builds a new kernel, it would be very nice if it had a tun module.

EDIT: Just build myself a kernel featuring tun module using this howto: http://handhelds.org/moin/moin.cgi/UniversalKernel; (http://handhelds.org/moin/moin.cgi/UniversalKernel;)
works fine. I could write that there should be some work on that kernel, but everybody who tried to use wifi and had problems knows that
Title: Htc Universal
Post by: p3t3r on April 29, 2008, 05:34:49 am
Thanks for your help, but it worked with datathiefs´explanations (maybe they should be added to the wiki..).
I don´t remember the error, wasn´t a catchy one.
Title: Htc Universal
Post by: v3s on April 29, 2008, 02:14:41 pm
something about errors on ICEWM installation.. xserver-kdrive-fbdev gives error when you install it with other packages.. when you install it alone it's OK.. When you install x-yonggun package it says that there is no package called xbindkeys and after that it stop.. When you try to install it the xbindkeys packega it says that the you must download otherpackages or something like that.. When you try apt-get -f install (I think it was like this  ) it will be doing something with indenpency and after that it gives you an error (some like the ftp servers are temporary unavailable) and it will not install the xbindkeys package.. I tried this two times (i format my sd and make everything from beginning) and I never installed iceWM.. Is there someone who can help me?
Title: Htc Universal
Post by: wolfy on April 29, 2008, 03:24:23 pm
Quote from: v3s
something about errors on ICEWM installation.. xserver-kdrive-fbdev gives error when you install it with other packages.. when you install it alone it's OK.. When you install x-yonggun package it says that there is no package called xbindkeys and after that it stop.. When you try to install it the xbindkeys packega it says that the you must download otherpackages or something like that.. When you try apt-get -f install (I think it was like this  ) it will be doing something with indenpency and after that it gives you an error (some like the ftp servers are temporary unavailable) and it will not install the xbindkeys package.. I tried this two times (i format my sd and make everything from beginning) and I never installed iceWM.. Is there someone who can help me?

   Me too.... Only for xinit instaling i downloaded 9-10 packages and to finish is need more packages dependencies.
xinit depend to:
cpp
The GNU C preprocessor (cpp)
libc6 (>= 2.7-1) [not alpha, ia64]
GNU C Library: Shared libraries
also a virtual package provided by libc6-udeb
libc6.1 (>= 2.7-1) [alpha, ia64]
GNU C Library: Shared libraries
also a virtual package provided by libc6.1-udeb
libx11-6
X11 client-side library
//////////////////////////
cpp depend to:
cpp-4.2 (>= 4.2.2-3)
//////////////////////
BLA BLA BLA
From here i download http://www.debian.org/distrib/packages (http://www.debian.org/distrib/packages), is more, more testing armel pachage, i can t downloaded all, i m stoped   To install xserver-titchy is some case... packages depending to other packages. I gived up
Title: Htc Universal
Post by: ShiroiKuma on April 29, 2008, 05:03:48 pm
Quote from: v3s
something about errors on ICEWM installation.. xserver-kdrive-fbdev gives error when you install it with other packages.. when you install it alone it's OK.. When you install x-yonggun package it says that there is no package called xbindkeys and after that it stop.. When you try to install it the xbindkeys packega it says that the you must download otherpackages or something like that.. When you try apt-get -f install (I think it was like this  ) it will be doing something with indenpency and after that it gives you an error (some like the ftp servers are temporary unavailable) and it will not install the xbindkeys package.. I tried this two times (i format my sd and make everything from beginning) and I never installed iceWM.. Is there someone who can help me?
What does your /etc/apt/sources.list file say? Did you do apt-get update and upgrade before installing X?
Title: Htc Universal
Post by: ArchiMark on April 29, 2008, 11:46:03 pm
[size=]UPDATE[/size][/b]

We interrupt this regularly scheduled program to let you know that ArchiMark just received today his 4800 mAh battery and it is now charging up.....

Holey Moley, this is one bad mothuh*#$%@^& battery!!!!!

 

By that I mean that it is very THICK!, such that it comes with a custom battery cover to accommodate the extra battery thickness....so it must have some serious juice to it.....

Now, back to your regularly scheduled program.....

 
Title: Htc Universal
Post by: ArchiMark on April 30, 2008, 12:39:52 am
Questions

1. Over at xda-developers.com forum there is talk about doubling HTC Universal RAM from 64 to 128MB. Doesn't look like a do-it-yourselfer job....

Wondering if this would upgrade would make a significant difference in HTC performance using Debian?

2. Is there any reason to upgrade ROM from WM5 to WM6 if you're mainly using HTC Uni for running Debian? Wouldn't think there would be, but just thought I'd ask since this upgrade is available over at xda-developers...

Thanks.
Title: Htc Universal
Post by: p3t3r on April 30, 2008, 02:06:35 am
Well, it is definitely great for Windows Mobile users - as you have to quit applications via settings menu, Universal becomes slow there quite soon.

I heard about prices for that around 180$ (in Germany), so it isn't that cheap. That's why I just have a 128MB swap on my 2GB SD.

Running GPE there are only few MBs of Ram free, so it could improve your performance while using X.


Quote from: ArchiMark
Questions

1. Over at xda-developers.com forum there is talk about doubling HTC Universal RAM from 64 to 128MB. Doesn't look like a do-it-yourselfer job....

Wondering if this would upgrade would make a significant difference in HTC performance using Debian?

2. Is there any reason to upgrade ROM from WM5 to WM6 if you're mainly using HTC Uni for running Debian? Wouldn't think there would be, but just thought I'd ask since this upgrade is available over at xda-developers...

Thanks.
Title: Htc Universal
Post by: wolfy on April 30, 2008, 02:36:56 am
I have a little ideea  
Because, I dont have one linux machine whith internet conection (my WiFi secure works only in windows) and whith my HTC Uni i cant conect to the internet to download via apt-get upgrate .... only wap i have and ftp and files then more 3Mb is resticted........ i sugest and i make one big help
If any have instaled Debian on you  SD-card whith X (ICEWM or other X interface) please .tar you SD-card contains and share that arhive. Please... Please Y whill bles you forever
I m verry interested to run Debian whit X in my HTC uni
I hope some result
Title: Htc Universal
Post by: datathief on April 30, 2008, 05:19:00 am
Quote from: wolfy
If any have instaled Debian on you  SD-card whith X (ICEWM or other X interface) please .tar you SD-card contains and share that arhive. Please...
If you get IceWM installed, you will need to install applications  -  which will have dependencies, and you will have the same problems.

Debian depends on an internet connection.  You may be able to get a USB network connection in Windows using a combination of the instructions at http://www.davehylands.com/linux/gumstix/usbnet (http://www.davehylands.com/linux/gumstix/usbnet) and http://wiki.neilandtheresa.co.uk/Titchy_Mo...ips/USB_Network (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network)  -  I don't have Windows, so I can't test this.
Title: Htc Universal
Post by: wolfy on April 30, 2008, 10:10:58 am
Quote from: datathief
Debian depends on an internet connection.  You may be able to get a USB network connection in Windows using a combination of the instructions at http://www.davehylands.com/linux/gumstix/usbnet (http://www.davehylands.com/linux/gumstix/usbnet) and http://wiki.neilandtheresa.co.uk/Titchy_Mo...ips/USB_Network (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network)  -  I don't have Windows, so I can't test this.

Thx Thx Thx. datathief Whith your specifications i make conections to internet whith my HCT and Windows PC. I use file Linux.inf and sharing default conection to install Remote NDIS USB Driver, After that in HCT i create the network interface and everithing works fine  i install and upgrate via apt-get and all from here: http://sumoudou.org/uni/vebu/yonggun.html (http://sumoudou.org/uni/vebu/yonggun.html)
Finaly i started ICEWM whith #startx and debian started whit graphic interface....
But    I steel some problems: Touchscreen not work
Comand #ts_calibrate not work This is the result: #ts_open: No such file or directory I have already installed tslib-calibrate and tslib-conf
Haw can i do   ???
Title: Htc Universal
Post by: datathief on April 30, 2008, 10:27:53 am
I've added some alarm stuff to the wiki here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Alarms).  This is the only thing I still rely on my other phone for.

I've also uploaded new whiptail, calllog and smsmbox scripts that can use a caller-ID "helper" script to look up names.  A "beta" version of htcunid should be available in a couple of days, and then I'm going to work on a whiptail UI for dialling and SMS.  The console-based UI will be finished then, I think.

It should be trivial to port the whiptail UI to zenity or gtkdialog or something, and quickly have an X-based UI.

Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux) had XFCE4 as standard, but apt-get install xfce4 wants to install 342MB of stuff in Debian Lenny  -  much more than in Etch.  Can anyone suggest a new default window manager?
Title: Htc Universal
Post by: datathief on April 30, 2008, 10:33:43 am
Quote from: wolfy
But    I steel some problems: Touchscreen not work
Comand #ts_calibrate not work This is the result: #ts_open: No such file or directory I have already installed tslib-calibrate and tslib-conf
Haw can i do   ???
The packages you're using were created for a Zaurus, which has the touchscreen device in a different place.  See here (https://www.oesf.org/forum/index.php?s=&showtopic=25666&view=findpost&p=176513) for a possible fix.
Title: Htc Universal
Post by: ShiroiKuma on April 30, 2008, 12:16:15 pm
Quote from: datathief
I've also uploaded new whiptail, calllog and smsmbox scripts that can use a caller-ID "helper" script to look up names.  A "beta" version of htcunid should be available in a couple of days, and then I'm going to work on a whiptail UI for dialling and SMS.  The console-based UI will be finished then, I think.
I'm wondering, is it really a good idea to save the caller ID in the SMS mbox file? I.e. shouldn't just the plain ID data be saved, thus only the number, and then let other interface scripts, which presumably will be developed to handle the caller ID when displaying the data. For instance I'm developing the history SMS display update to the keitai package for emacs, which should in my thinking just interface to plain vanilla SMS log, and then do the fancy stuff of displaying the callers name, his organization, the date in a fancy format etc. But it seems that these details shouldn't be saved to the file.

Is there any good reason to incorporate it into the mbox file saved?
Title: Htc Universal
Post by: datathief on April 30, 2008, 12:42:46 pm
Quote from: ShiroiKuma
Quote from: datathief
I've also uploaded new whiptail, calllog and smsmbox scripts that can use a caller-ID "helper" script to look up names.  A "beta" version of htcunid should be available in a couple of days, and then I'm going to work on a whiptail UI for dialling and SMS.  The console-based UI will be finished then, I think.
I'm wondering, is it really a good idea to save the caller ID in the SMS mbox file? I.e. shouldn't just the plain ID data be saved, thus only the number, and then let other interface scripts, which presumably will be developed to handle the caller ID when displaying the data. For instance I'm developing the history SMS display update to the keitai package for emacs, which should in my thinking just interface to plain vanilla SMS log, and then do the fancy stuff of displaying the callers name, his organization, the date in a fancy format etc. But it seems that these details shouldn't be saved to the file.

Is there any good reason to incorporate it into the mbox file saved?
I'm saving it as "Formatted Name <number>", like an e-mail address, so it's displayed nicely by default in a mail client.  The original number is still available.
Title: Htc Universal
Post by: ShiroiKuma on April 30, 2008, 02:22:36 pm
Quote from: datathief
I'm saving it as "Formatted Name <number>", like an e-mail address, so it's displayed nicely by default in a mail client.  The original number is still available.
I know, I've seen you basically follow an "email address" convention in this sense. I was gonna do it too, originally, even save a well formatted datetime in the smsbox, but then, as a mental-nitpicking, if you wish, it ocurred to me that it's a sort of a redundant data, and thus not necessary, since in the beginning you might just tail smslog but eventually a full frontend program will display the file well formatted for most users, be it in emacs, or a whiptail frontend etc.
Quote
so it's displayed nicely by default in a mail client
Do you anticipate viewing SMSes in an email client? Or do you already? Which one?
Title: Htc Universal
Post by: datathief on April 30, 2008, 03:37:29 pm
Quote from: ShiroiKuma
Do you anticipate viewing SMSes in an email client? Or do you already? Which one?
I would like to be able to handle SMS alongside my e-mail, although it doesn't quite fit (SMS messages don't have subjects, for example).

I'm not sure how to manage sending SMS from my e-mail client yet (I'm using mutt).  I need a "fake" MTA that will use either htcunid or the real MTA to send messages.

Obviously, if this doesn't fit your vision, you can use your own event.d script.  
Title: Htc Universal
Post by: Cagnulein on April 30, 2008, 06:27:27 pm
First of all sorry for my bad english and for my noob question.
I've just installed "Titchy" on my universal and it runs perfectly  (thanks :*)
I've only a question: here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network) you talk about "iptables" but when i try to execute
Code: [Select]
iptables -A FORWARD -j ACCEPT it tells me that iptables doesn't exist
Do i miss something?

P.S. same for iwconfig

Thanks in advance
Roberto
Title: Htc Universal
Post by: datathief on May 01, 2008, 04:30:57 am
Quote from: Cagnulein
here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network) you talk about "iptables" but when i try to execute
Code: [Select]
iptables -A FORWARD -j ACCEPT it tells me that iptables doesn't exist
You don't need iptables on the phone, but on the PC at the other end of the USB cable.  Run the first set of commands on the PC, and the second set on the phone.

If the PC is running Windows, I can't help you, but another poster here (https://www.oesf.org/forum/index.php?showtopic=25666&view=findpost&p=176864) has had success.

Quote
P.S. same for iwconfig
Yes...  I forgot to include this in the rootfs.  You will need to install the "wireless-tools" package yourself.
Title: Htc Universal
Post by: Cagnulein on May 01, 2008, 04:33:14 am
Quote
You don't need iptables on the phone, but on the PC at the other end of the USB cable. Run the first set of commands on the PC, and the second set on the phone.
I feel so stupid
Thanks
Title: Htc Universal
Post by: wolfy on May 01, 2008, 06:57:44 am
Quote from: Cagnulein
First of all sorry for my bad english and for my noob question.
I've just installed "Titchy" on my universal and it runs perfectly  (thanks :*)
I've only a question: here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/USB_Network) you talk about "iptables" but when i try to execute
Code: [Select]
iptables -A FORWARD -j ACCEPT it tells me that iptables doesn't exist

I understand and i see the debian upgrates and install depends on the internet conection
Can`t be realised directly whith your HTC Uni if you have posibility, or from network whith one PC
Because i can`t make my WiFi secure to work in Linux PC i tried to make configuration to work whith Windows
I follow the datathief posted link and after installation Linux.inf drivers in Windows and in my HTC Uni i put this comand:

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']ifconfig usb0 192.168.3.3
route add default gw 192.168.3.1
echo "nameserver 208.67.222.222" >/etc/resolv.conf[/div] But not work in 1 st
I make my WiFi conection shared whith my linux network and i found the IP adresses is diferent like 192.168.3.3
Whose 192.168.1.3 and not work: Limited conectivity

Only after i repaired code my conections work

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']ifconfig usb0 192.168.1.3
route add default gw 192.168.3.1
echo "nameserver 208.67.222.222" >/etc/resolv.conf[/div] Now if you want to make one similar conection whith Windows PC not Linux is verry easy
All you want to do (if you want) is to pay atention on your IP linux showing in Windows to correct this in HTC Uni line comand
Right click in Network Conections to Linux Network (icon)/Status/Details and there you can see IP adress that while read from HTC Uni
After that i make Internet Conections Sharing with Home Network Conections
In my PC whose Local Area Conection 2 because I already have one network whith other PC in my home
If you not have another network you will see only Local Area Conection and that is
And Windows Firewall make disable to full working
Title: Htc Universal
Post by: Cagnulein on May 01, 2008, 07:07:25 am
only a fast report: all works fine! keyboard, lcd, X, usb, wifi...i've just close my ssh session on my desktop pc XD
I'm so excited
Title: Htc Universal
Post by: wolfy on May 01, 2008, 10:54:59 am
I` m verry Excited me to......
Finaly i instaled xinit gpe and all is work fine, touchscreen, keyboard, etc....  
Now i`m interesting whith conection to internet via wap from my provider Orange
but....
Some Aplications is missing like one Web Browser   Aplication like gpe-filemanager, gpe-bluethooth etc i find them an i already instaled.....
1. Haw and from where to install one web browser to work in GPE ???? AND.....
2. Some sugestion to configure my wap conections in GPE
    - APN wap
    - Proxy:Port 62.217.247.252:8799
    - no user and pass
3. Exist some setings or aplications to make desktop in GPE?

Sorry for my insistence  
Title: Htc Universal
Post by: datathief on May 01, 2008, 11:27:02 am
Quote from: wolfy
1. Haw and from where to install one web browser to work in GPE ????
My web browser icehamster (http://icehamster.neilandtheresa.co.uk/) should work.  I don't know how to add it to the GPE menus (maybe it will happen automatically).

Quote
2. Some sugestion to configure my wap conections in GPE
    - APN wap
    - Proxy:Port 62.217.247.252:8799
    - no user and pass
Edit /etc/htcunid/htcunid.conf and set your APN.  Restart htcunid to pick up the new setting:
Code: [Select]
/etc/init.d/htcunid restartThen, try connecting using pppd:
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach
Quote
3. Exist some setings or aplications to make desktop in GPE?
I don't know.
Title: Htc Universal
Post by: wolfy on May 01, 2008, 12:45:02 pm
Thx man
Icehamster is verry cool, i understand icehamster use minimo engine and all setings and luck verry nice
Work verry good whith network conection

Now i try to make conections to wap from my phone
 
Title: Htc Universal
Post by: wolfy on May 01, 2008, 12:56:07 pm
Quote from: datathief
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach

Couldn`t get channel number: Imput/Output error
Script socat - tcp:127.0.0.1:1702 finished (pid 1450), status = 0x7f


 

Is missing my dial GPRS number??? I know is *99# Haw to put this number?? or what  
Title: Htc Universal
Post by: datathief on May 01, 2008, 02:37:06 pm
Quote from: wolfy
Quote from: datathief
Code: [Select]
pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach

Couldn`t get channel number: Imput/Output error
Script socat - tcp:127.0.0.1:1702 finished (pid 1450), status = 0x7f


 

Is missing my dial GPRS number??? I know is *99# Haw to put this number?? or what  
Is there any other error before this?

Is "socat" installed?  If not, you will need to install it:
Code: [Select]
apt-get install socat
Title: Htc Universal
Post by: wolfy on May 01, 2008, 02:55:17 pm
Quote from: datathief
Is there any other error before this?

No other errors before...
Just i write this: pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach

And after Enter is displayed this:
Couldn`t get channel number: Imput/Output error
Script socat - tcp:127.0.0.1:1702 finished (pid 1450), status = 0x7f


Quote
Is "socat" installed?  If not, you will need to install it:
Code: [Select]
apt-get install socat

Now i go to try to install socat  
Title: Htc Universal
Post by: ShiroiKuma on May 02, 2008, 04:50:45 am
Datathief, question regarding time. Are you able to preserve system time between linux reboots?

I have to set the time via date and hwclock -w every reboot.
Title: Htc Universal
Post by: Cagnulein on May 02, 2008, 07:00:40 am
after a test day and after 2 complete cycles of battery recharge i could say that i need an urgent script: something that after X minutes of inactivty suspends automatically the phone. How could i do this? crond? Ideas?
Title: Htc Universal
Post by: p3t3r on May 02, 2008, 07:30:20 am
I have got that time problem as well.

And I have got a gprs/umts problem: I don't know how to authenticate, as my provider requires authentication.


BTW: I use JWM now as window manager and dillo as default browser (i have midori, minimo and icehamster as well, but they aren't that fast  ) and I think of building SIAG Office, as it has a small footprint and good features.

[This post was written on HTC Universal running Debian]
Quote from: ShiroiKuma
Datathief, question regarding time. Are you able to preserve system time between linux reboots?

I have to set the time via date and hwclock -w every reboot.
Title: Htc Universal
Post by: datathief on May 02, 2008, 07:36:47 am
Quote from: ShiroiKuma
Datathief, question regarding time. Are you able to preserve system time between linux reboots?

I have to set the time via date and hwclock -w every reboot.
No, I don't know how to do this.  I don't reboot very often, though, so I haven't noticed the problem.  

When you reboot, does Windows Mobile have the correct time?  If it does, maybe we can access that information somehow.  Perhaps the modem knows the time (I've seen AT commands to query this  -  I'll look them up).
Title: Htc Universal
Post by: datathief on May 02, 2008, 07:47:11 am
Quote from: p3t3r
And I have got a gprs/umts problem: I don't know how to authenticate, as my provider requires authentication.
I think you need to add your username to the pppd command line (or /etc/ppp/options) and add the password to /etc/ppp/chap-secrets.

You can follow the instructions at http://www.xs4all.nl/~ernstagn/GPRS-HOWTO/GPRS-HOWTO-6.html (http://www.xs4all.nl/~ernstagn/GPRS-HOWTO/GPRS-HOWTO-6.html)  -  but use:
Code: [Select]
pty 'socat - tcp:127.0.0.1:1702'instead of
Code: [Select]
connect 'chat -f /etc/ppp/chat/gprs'and you don't need a chat script.
Title: Htc Universal
Post by: datathief on May 02, 2008, 08:12:53 am
Quote from: Cagnulein
after a test day and after 2 complete cycles of battery recharge i could say that i need an urgent script: something that after X minutes of inactivty suspends automatically the phone. How could i do this? crond? Ideas?
Alright, here (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Automatic_Suspend) is a really simple bash script to do this.

Edit: Updated the script to work with the dash shell, which uses much less RAM than bash.

Edit2: Created a package, including scripts to make sure the phone doesn't suspend during a call.
Title: Htc Universal
Post by: ShiroiKuma on May 02, 2008, 08:23:07 am
Quote from: datathief
No, I don't know how to do this.  I don't reboot very often, though, so I haven't noticed the problem.  
Lucky you. I keep messing with X and end up doing lots of rebooting ( However, I've already set up a good security system, whereby I can mount the encrypted second partition on the SD, which mounts to home. Therefore even if the device gets stolen, none of your data is compromised.

Quote
When you reboot, does Windows Mobile have the correct time?  If it does, maybe we can access that information somehow.  Perhaps the modem knows the time (I've seen AT commands to query this  -  I'll look them up).
Yes, WM keeps the correct time. But perhaps it's as you say, since I've set the "automatically get time from network" or whatever that is...
Title: Htc Universal
Post by: datathief on May 02, 2008, 09:16:14 am
Quote from: ShiroiKuma
Yes, WM keeps the correct time. But perhaps it's as you say, since I've set the "automatically get time from network" or whatever that is...
There's a command get the time from the modem, but it doesn't return the date.  

It's possible that we could create some awful hack, like:This would only work if you restart Linux on the same day you reboot...
Title: Htc Universal
Post by: ShiroiKuma on May 02, 2008, 01:52:29 pm
Regarding xserver-titchy installation, it really is much simpler than the way full of hacks seen on my page.

I'm currently experiencing difficulties with my X setup, so would like to reinstall it using xserver-titchy, however I'm worried about the inability to start X as a regular user. Is this really not a problem for anyone, or is there a workaround to start it as non-root? I've been trying various tidbits to get it going as regular user, but without xdm cannot, and with xdm the X don't start with a working touchscreen etc.

Anyone able to use xserver-titchy and startx as a regular user?
Title: Htc Universal
Post by: ShiroiKuma on May 02, 2008, 04:17:39 pm
Quote from: datathief
It's possible that we could create some awful hack, like:
  • Write the date to a file
  • Reboot
  • Read date from file
  • Retrieve time from modem
This would only work if you restart Linux on the same day you reboot...
I think this is a workable approach, since you usually reboot on the same day. And if you can get the time from the modem, then that would be fine. Much better anyway than to set the datetime by hand every reboot.
Title: Htc Universal
Post by: webdork on May 02, 2008, 07:07:39 pm
Has anyone else been successful in getting icewm in landscape mode? Every time I change the screen +/- 90 degrees it crashes X
Title: Htc Universal
Post by: datathief on May 02, 2008, 07:44:36 pm
htcunid 0.9 (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Installing_Debian) is available.  Some bug fixes, and network and signal functions.  To get network info:
Code: [Select]
htcunid networkTo get a list of networks (you'll have to look the codes up somewhere):
Code: [Select]
htcunid network listTo connect to a specific network:
Code: [Select]
htcunid network
htcuni-autosuspend 0.3 (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Automatic_Suspend) is available.  Fixes a bug where multiple copies of the daemon could be started.

htcuni-keypress 0.1 (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Special_Keys) is available.  Handles the backlight, power, etc. buttons, in X and console.
Title: Htc Universal
Post by: ShiroiKuma on May 04, 2008, 07:49:43 am
Quote
htcuni-autosuspend 0.3 (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Automatic_Suspend) is available.  Fixes a bug where multiple copies of the daemon could be started.
I'm experience some issues of a moderately severe kind after installing and running htcuni-autosuspend, whereby after suspend if plugging in-out the AC adapter, the system wakes up half-way, to the suspend console, says a new USB device AC adapter was attached, then X need to be killed and the htcunid daemon stops responding and can't be restarted.

This even occurs when killing the autosuspend process before suspending by hand. I've seen some errors generated by the init.d htcuni-suspend daemon, but couldn't write them down, need to check what's going on.

Or it's potentially connected with swap. Should it be disabled before suspend and enabled afterwards? Didn't have suspend problems with it enabled before?

EDIT1: I think I've determined the problems are originated when suspend is initiated while disk activity is occurring. I've witnessed an instance of this while upgrading in aptitude. Therefore, the modification proposed in the following post is all the more needed. Obviously, you can stop the daemon by hand, but then if you forget, it leads to problems in critical cases like mine above.

EDIT2: Even when the suspend daemon is stopped, there are still random errors after some time associated with it or something hanging the htcunid. I've been able to log some error messages, I've gotten this a couple of times:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']htcuni:~# /etc/rcS.d/S99htcuni-autosuspend: line 21: 2187 Terminated
   setsid $DAEMON > /dev/null 2> /dev/null
/etc/rcS.d/S41htcunid: line 19:  2051 Illegal instruction    setsid $DAEMON > /dev/null 2> /dev/null[/div]
Title: Htc Universal
Post by: ShiroiKuma on May 04, 2008, 07:53:01 am
I'd recommend few changes, my problems aside, to the autosuspend scripts.

There should be a conf file, where the user would set among others the following things:

Suspend delay while on battery, 0 for no suspend
Suspend delay while on AC, 0 for no suspend
Applications, which when running no suspend

This is similar to not suspending the phone while in a call, but there are times when there is no keyboard activity and you don't want to suspend. Mplayer playing being the obvious choice, however also for instance aptitude or agt-get running, i.e. you're upgrading the system or installing packages, you don't need suspend. I'm sure there's others, so the user should be able to select when not to suspend.
Title: Htc Universal
Post by: datathief on May 04, 2008, 11:57:36 pm
Quote from: ShiroiKuma
I'm experience some issues of a moderately severe kind after installing and running htcuni-autosuspend

I don't know what could be causing these problems.  I haven't experienced them.

The errors you quoted include references to setsid.  I moved to using setsid instead of start-stop-daemon because it's a simpler command  -  I can't imagine how it could be causing problems, but you could try:
Code: [Select]
sed -i "s/sedsid/start-stop-daemon --start --background --exec/" /etc/init.d/htcunid /etc/init.d/htcuni-autosuspendand restart both daemons.  If it helps, I'll make the same changes when I upload new versions.
Title: Htc Universal
Post by: ShiroiKuma on May 05, 2008, 01:51:38 am
Quote from: datathief
I don't know what could be causing these problems.  I haven't experienced them.

The errors you quoted include references to setsid.  I moved to using setsid instead of start-stop-daemon because it's a simpler command  -  I can't imagine how it could be causing problems, but you could try:
Code: [Select]
sed -i "s/sedsid/start-stop-daemon --start --background --exec/" /etc/init.d/htcunid /etc/init.d/htcuni-autosuspendand restart both daemons.  If it helps, I'll make the same changes when I upload new versions.
I'm gonna wait a while, maybe it was linked to the fact that I left the U compiling stuff while away, so will see.

I do get however the "Unknown Hz value" bug. Do you experience that too? Is it related with procps?
Title: Htc Universal
Post by: wolfy on May 05, 2008, 04:29:35 am
Please help-me me quikly  
I follow al instructions from http://sumoudou.org/ (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/ (http://ftp.cz.debian.org/debian/) sid main etc etc etc

I wait some explanations to this  
Title: Htc Universal
Post by: ShiroiKuma 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.
Title: Htc Universal
Post by: wolfy 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
Title: Htc Universal
Post by: webdork 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?
Title: Htc Universal
Post by: wolfy 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???
Title: Htc Universal
Post by: ShiroiKuma 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]
Title: Htc Universal
Post by: wolfy 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
Title: Htc Universal
Post by: ShiroiKuma 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]
Title: Htc Universal
Post by: wolfy 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

     
Title: Htc Universal
Post by: ShiroiKuma 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.
Title: Htc Universal
Post by: wolfy 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

 
Title: Htc Universal
Post by: p3t3r 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.
Title: Htc Universal
Post by: Cagnulein 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
Title: Htc Universal
Post by: ShiroiKuma 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.
Title: Htc Universal
Post by: datathief 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.
Title: Htc Universal
Post by: datathief on May 06, 2008, 05:21:24 am
Quote from: ShiroiKuma
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.
I adapted xserver-titchy from the original Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux)  -  which had xdm and xfce4 installed by default.  I would expect xdm to work "out of the box".
Title: Htc Universal
Post by: ShiroiKuma on May 06, 2008, 05:49:05 am
Quote from: datathief
There's a command get the time from the modem, but it doesn't return the date.  

It's possible that we could create some awful hack, like:
  • Write the date to a file
  • Reboot
  • Read date from file
  • Retrieve time from modem
This would only work if you restart Linux on the same day you reboot...
Can you specify the time retrieval command, so that I may implement this hack?
Title: Htc Universal
Post by: ShiroiKuma on May 06, 2008, 05:51:07 am
Quote from: datathief
I adapted xserver-titchy from the original Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux)  -  which had xdm and xfce4 installed by default.  I would expect xdm to work "out of the box".
I wasn't able to run it and log in as a regular user, though it worked when logging in as root. Can anyone who is running xserver-titchy confirm that xdm runs by default and enables you to login as a regular user?
Title: Htc Universal
Post by: datathief on May 06, 2008, 08:22:11 am
Quote from: ShiroiKuma
Quote from: datathief
There's a command get the time from the modem, but it doesn't return the date.  

It's possible that we could create some awful hack, like:
  • Write the date to a file
  • Reboot
  • Read date from file
  • Retrieve time from modem
This would only work if you restart Linux on the same day you reboot...
Can you specify the time retrieval command, so that I may implement this hack?
To retrieve the time from the modem:
Code: [Select]
htcunid atcmd AT@SYSTEMTIME
To set the time held by the modem:
Code: [Select]
htcunid atcmd AT@SYSTEMTIME=HH,MM,SS
It's possible to set the date, too, but I haven't found a way to retrieve it:
Code: [Select]
htcunid atcmd AT@SYSTEMTIME=HH,MM,SS,YYYY,MM,DD
Title: Htc Universal
Post by: wolfy on May 06, 2008, 10:26:59 am
Quote from: datathief
I adapted xserver-titchy from the original Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux)  -  which had xdm and xfce4 installed by default.  I would expect xdm to work "out of the box".
Can you say when will be finish for download xserver-tytchy with xdm and xfce4?
xcfe4 WM look like here http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots) ? because is verry cool
 
Title: Htc Universal
Post by: datathief on May 06, 2008, 11:21:10 am
Quote from: wolfy
Quote from: datathief
I adapted xserver-titchy from the original Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux)  -  which had xdm and xfce4 installed by default.  I would expect xdm to work "out of the box".
Can you say when will be finish for download xserver-tytchy with xdm and xfce4?
xcfe4 WM look like here http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots) ? because is verry cool
 
XFCE4 seems to have grown, and requires around 300MB of disk space, so I'm looking for an alternative.  If you really want to try it, I've updated the old titchy-desktop package to work on the Universal.
  • You may need to start from a clean rootfs.  The changes from www.sumoudou.org (http://www.sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20X%20in%20Debian%20on%20the%20Universal) might conflict.
  • Make sure your USB network is working.
  • Add this line to /etc/apt/sources.list:
    Code: [Select]
    deb http://debian.neilandtheresa.co.uk/ titchy/
  • Update your packages list:
    Code: [Select]
    apt-get update
  • Install Titchy
    Code: [Select]
    apt-get install titchy-desktop
  • Wait for about 90MB of packages to download...
  • If XDM doesn't start, try:
    Code: [Select]
    /etc/init.d/xdm restart
Note: I have not tested this from a clean install, so it's possible that other packages will be needed.  I think it will work, though.
Title: Htc Universal
Post by: wolfy on May 06, 2008, 11:43:22 am
Quote from: datathief
Quote from: wolfy
Quote from: datathief
I adapted xserver-titchy from the original Titchy (http://wiki.neilandtheresa.co.uk/Titchy_Linux)  -  which had xdm and xfce4 installed by default.  I would expect xdm to work "out of the box".
Can you say when will be finish for download xserver-tytchy with xdm and xfce4?
xcfe4 WM look like here http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Screenshots) ? because is verry cool
 
XFCE4 seems to have grown, and requires around 300MB of disk space, so I'm looking for an alternative.  If you really want to try it, I've updated the old titchy-desktop package to work on the Universal.
  • You may need to start from a clean rootfs.  The changes from www.sumoudou.org (http://www.sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20X%20in%20Debian%20on%20the%20Universal) might conflict.
  • Make sure your USB network is working.
  • Add this line to /etc/apt/sources.list:
    Code: [Select]
    deb http://debian.neilandtheresa.co.uk/ titchy/
  • Update your packages list:
    Code: [Select]
    apt-get update
  • Install Titchy
    Code: [Select]
    apt-get install titchy-desktop
  • Wait for about 90MB of packages to download...
  • If XDM doesn't start, try:
    Code: [Select]
    /etc/init.d/xdm restart
Note: I have not tested this from a clean install, so it's possible that other packages will be needed.  I think it will work, though.

OK Thx
in sources.list i whill change and i whill put this:
deb http://debian.neilandtheresa.co.uk/ (http://debian.neilandtheresa.co.uk/) titchy/

and second line deb-srt?
put this:?
deb-srt http://debian.neilandtheresa.co.uk/ (http://debian.neilandtheresa.co.uk/) titchy/

is needed??

And whith space.... no problem
My download is faster and i have one 4Gb SD
I whill repeat install from begining with mke2fs

SWAP Partition is needed?
Title: Htc Universal
Post by: ShiroiKuma on May 06, 2008, 05:30:08 pm
Datathief, how do you switch ttys, I can't figure out the key combo here, I've tried Ctrl-Alt-Fn-2 etc. and similar ones, but nothing. It seems F2-F7 buttons are not mapped or am I wrong?
Title: Htc Universal
Post by: webdork on May 06, 2008, 09:06:30 pm
Anyone know how to map the | (break) key?
Title: Htc Universal
Post by: Cagnulein on May 07, 2008, 01:00:08 am
Quote from: ShiroiKuma
Datathief, how do you switch ttys, I can't figure out the key combo here, I've tried Ctrl-Alt-Fn-2 etc. and similar ones, but nothing. It seems F2-F7 buttons are not mapped or am I wrong?

to switching ttys you have to push: Ctrl+Alt+ from SoftKeyLeft to SoftKeyRight are Fn. So SoftKeyLeft is F2, next is F3, F4, SoftKeyRight is F5 and the HangButton is F6...i haven't found F1

Quote from: webdork
Anyone know how to map the | (break) key?

The | is the key right to the space (SIMB. here)
Title: Htc Universal
Post by: ShiroiKuma on May 07, 2008, 04:30:13 am
Quote from: Cagnulein
to switching ttys you have to push: Ctrl+Alt+ from SoftKeyLeft to SoftKeyRight are Fn. So SoftKeyLeft is F2, next is F3, F4, SoftKeyRight is F5 and the HangButton is F6...i haven't found F1
Hmmm... So if I'd switch to tty2, how am I gonna get back to X, if there's no F7? Wait, isn't there a shell command to switch to another tty?
Title: Htc Universal
Post by: datathief on May 07, 2008, 04:45:40 am
Quote from: ShiroiKuma
Quote from: Cagnulein
to switching ttys you have to push: Ctrl+Alt+ from SoftKeyLeft to SoftKeyRight are Fn. So SoftKeyLeft is F2, next is F3, F4, SoftKeyRight is F5 and the HangButton is F6...i haven't found F1
Hmmm... So if I'd switch to tty2, how am I gonna get back to X, if there's no F7? Wait, isn't there a shell command to switch to another tty?
At the console, alt + cursor left/right move through the VTs.  Oh, and chvt 7 will get back to X.  The F-keys need mapping somewhere...
Title: Htc Universal
Post by: ShiroiKuma on May 07, 2008, 05:09:06 am
Full X with phone utilities installed working image available

I've generated a full working image of the Debian GNU/Linux for the Universal, that contains X with xdm and icewm installed as the WM. And it includes full working datathief's phone scripts, and also additional generated kernel modules to enable mounting LUKS/DM encrypted volumes.

The image is easily installed in three steps and gives you a full working X phone distribution without additional modifications right after install.

It's huge though, 245 Megs bzipped, expanded takes around 600 Megs.

You can get it with the instructions on install at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20Debian%20GNU/Linux%20on%20the%20Universal)

BTW, it is Debian Sid, i.e. unstable, not Lenny, i.e. Testing.
Title: Htc Universal
Post by: ShiroiKuma on May 07, 2008, 05:14:25 am
Quote from: Cagnulein
to switching ttys you have to push: Ctrl+Alt+ from SoftKeyLeft to SoftKeyRight are Fn. So SoftKeyLeft is F2, next is F3, F4, SoftKeyRight is F5 and the HangButton is F6...i haven't found F1
Maybe this works in console, but not in X, just tried.

In X, just chvt ...
Title: Htc Universal
Post by: datathief on May 07, 2008, 05:22:52 am
Quote from: ShiroiKuma
Full X with phone utilities installed working image available

I've generated a full working image of the Debian GNU/Linux for the Universal, that contains X with xdm and icewm installed as the WM. And it includes full working datathief's phone scripts, and also additional generated kernel modules to enable mounting LUKS/DM encrypted volumes.

The image is easily installed in three steps and gives you a full working X phone distribution without additional modifications right after install.

It's huge though, 245 Megs bzipped, expanded takes around 600 Megs.

You can get it with the instructions on install at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20Debian%20GNU/Linux%20on%20the%20Universal)

BTW, it is Debian Sid, i.e. unstable, not Lenny, i.e. Testing.
You may want to put my debian repository in your sources.list, for ease of upgrading the htcuni-* packages (I'll start putting them in the repository today or tomorrow).

Code: [Select]
deb http://debian.neilandtheresa.co.uk/ titchy/
Title: Htc Universal
Post by: wolfy on May 07, 2008, 07:33:18 am
Quote from: ShiroiKuma
Full X with phone utilities installed working image available

I've generated a full working image of the Debian GNU/Linux for the Universal, that contains X with xdm and icewm installed as the WM. And it includes full working datathief's phone scripts, and also additional generated kernel modules to enable mounting LUKS/DM encrypted volumes.

The image is easily installed in three steps and gives you a full working X phone distribution without additional modifications right after install.

It's huge though, 245 Megs bzipped, expanded takes around 600 Megs.

You can get it with the instructions on install at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20Debian%20GNU/Linux%20on%20the%20Universal)

BTW, it is Debian Sid, i.e. unstable, not Lenny, i.e. Testing.


Uau greats news Tomorow i will untar this roots  

this full phone functions include mp3libs whith mplayer?

and another question I have one 16 Gb SDHC i can used ? linux kernel can read?
Title: Htc Universal
Post by: ShiroiKuma on May 07, 2008, 10:29:14 am
Quote from: wolfy
this full phone functions include mp3libs whith mplayer?

and another question I have one 16 Gb SDHC i can used ? linux kernel can read?
Yeah, it includes everything fully configured, thus also the mp3libs with a functioning mplayer.

16GB card will work without a problem.
Title: Htc Universal
Post by: datathief on May 07, 2008, 10:48:57 am
Announcement

I've built the following packages and uploaded them to my Debian repository:
  • titchy-hardware-support - low-level hardware essentials, including keymap, firmware, sound settings and hacks
  • titchy-phone-daemon - handles phone events, dialling, SMS, GPRS, etc.
  • titchy-button-daemon - handles power button, backlight button, etc.
  • titchy-alarm-daemon - handles alarms
  • titchy-autosuspend-daemon - used to be htcuni-autosuspend
  • titchy-base - installs all of the above except titchy-phone-daemon (which is Uni-specific)
To install, add this line to your /etc/apt/sources.list:
Code: [Select]
deb http://debian.neilandtheresa.co.uk/ titchy/and type:
Code: [Select]
apt-get update
apt-get install titchy-base titchy-phone-daemon

Edit: I've had some problems with my webserver caching old versions of files.  If you've had problems, try "apt-get update" again now.
Title: Htc Universal
Post by: wolfy on May 07, 2008, 12:16:32 pm
Quote
Announcement
I've built the following packages and uploaded them to my Debian repository:
  • titchy-hardware-support - low-level hardware essentials, including keymap, firmware, sound settings and hacks
Quote
Full X with phone utilities installed working image available

I've generated a full working image of the Debian GNU/Linux for the Universal, that contains X with xdm and icewm installed as the WM. And it includes full working datathief's phone scripts, and also additional generated kernel modules to enable mounting LUKS/DM encrypted volumes.


Uau greats greats news  
I m verry happy for this
I think Debian GNU whill be my 1st OS in my Uni

I m here in this forum from few day and i can see and understant your work for as beginers in Linux... and from here Universal device will be have another future and another oportunities whith Linux OS

I want Thank You, I learn and understant someting that whose unknow for me Linux sistem

More succes for future in yours activity!!!
Title: Htc Universal
Post by: ShiroiKuma on May 07, 2008, 12:27:35 pm
Quote from: datathief
Announcement
I've built the following packages and uploaded them to my Debian repository:
    Man... now you tell me, after I've spent the night building the rootfs and now it's not up-to-date with your packages  
    Title: Htc Universal
    Post by: Sam Liddicott on May 07, 2008, 01:16:59 pm
    Quote from: ShiroiKuma
    Quote from: datathief
    Announcement
    I've built the following packages and uploaded them to my Debian repository:
      Man... now you tell me, after I've spent the night building the rootfs and now it's not up-to-date with your packages  

      I suppose a dselect update will get them?

      Sam
      Title: Htc Universal
      Post by: datathief on May 07, 2008, 01:57:23 pm
      Quote from: ShiroiKuma
      Man... now you tell me, after I've spent the night building the rootfs and now it's not up-to-date with your packages  
      Sorry!  There aren't many functional changes, it's mostly just a repackaging thing.  I'm about to start building a rootfs that runs on both the Zaurus and the Uni, and I wanted to get the packages tidy first.
      Title: Htc Universal
      Post by: ShiroiKuma on May 07, 2008, 02:58:38 pm
      Quote from: datathief
      Sorry!  There aren't many functional changes, it's mostly just a repackaging thing.  I'm about to start building a rootfs that runs on both the Zaurus and the Uni, and I wanted to get the packages tidy first.
      What's the perceived benefit in having a rootfs of this sort? Wouldn't it be better to keep them separate?
      Title: Htc Universal
      Post by: ArchiMark on May 07, 2008, 03:05:37 pm
      Quote from: ShiroiKuma
      Quote from: datathief
      Sorry!  There aren't many functional changes, it's mostly just a repackaging thing.  I'm about to start building a rootfs that runs on both the Zaurus and the Uni, and I wanted to get the packages tidy first.
      What's the perceived benefit in having a rootfs of this sort? Wouldn't it be better to keep them separate?

      Isn't it to help dummies like me, ShiroiKuma????

       
      Title: Htc Universal
      Post by: datathief on May 07, 2008, 04:15:19 pm
      Quote from: ShiroiKuma
      Quote from: datathief
      Sorry!  There aren't many functional changes, it's mostly just a repackaging thing.  I'm about to start building a rootfs that runs on both the Zaurus and the Uni, and I wanted to get the packages tidy first.
      What's the perceived benefit in having a rootfs of this sort? Wouldn't it be better to keep them separate?
      Academic interest, really  -  I just want to see if I can do it.  
      Title: Htc Universal
      Post by: Sam Liddicott on May 07, 2008, 05:27:26 pm
      Quote from: ShiroiKuma
      Quote from: datathief
      Announcement
      I've built the following packages and uploaded them to my Debian repository:
        Man... now you tell me, after I've spent the night building the rootfs and now it's not up-to-date with your packages  

        Hey ShiroiKuma, I'm awayyyyy!!

        Thanks!!!

        Have you added any phone software, or am I still using whiptail and stuff... I rang my phone and it went straight on to voicemail...

        Sam
        Title: Htc Universal
        Post by: Sam Liddicott on May 08, 2008, 02:45:18 am
        Quote from: Sam Liddicott
        Quote from: ShiroiKuma
        Quote from: datathief
        Announcement
        I've built the following packages and uploaded them to my Debian repository:
          Man... now you tell me, after I've spent the night building the rootfs and now it's not up-to-date with your packages  

          Hey ShiroiKuma, I'm awayyyyy!!

          Thanks!!!

          Have you added any phone software, or am I still using whiptail and stuff... I rang my phone and it went straight on to voicemail...

          Sam

          Ignore that, I was probably over-eager, it worked later.

          ShiroiKuma, do you use wlan or bluetooth?

          And finally, datathief and ShiroiKuma; how did you setup your build system to cross-compile debs?
          I'm running ubuntu with some from-source debian packages; I'll generally just get a deb-src, but please could you tell me your spell for cross-building debs?

          Thanks

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 03:00:01 am
          Would it be a good idea to COW the ext2 root filesystem and store the COW file in a separate JFFS2 partition?

          When the COW gets full it can be comitted to the ext2 root.

          comments?

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 04:29:32 am
          I'm loving this, thanks guys; some questions though:

          Can I specify a different timeout for htcuni-autosuspend when running on USB?

          The nearest documentation I find is:
          http://wiki.neilandtheresa.co.uk/Titchy_Mo...osuspend-daemon (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-autosuspend-daemon)

          which merely suggests it may be possible.

          My current conf file: /etc/default/htcuni-autosuspend

          Code: [Select]
          # Configuration file for htcuni-autosuspend

          # Suspend after 4 30-second periods (2 minutes) of inactivity
          TIMEOUT=4

          And.... I wonder if I can get swap-over-nfs working...

          When it comes out of suspend, usb networking is broken and I have to pull and re-insert the cable and re-setup the PC side to get it to work.

          Also.... when terminating a call, the device doesn't always switch back to the previous vt
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 04:30:56 am
          I've a few scripts at home using "dialog" (which I prefer to whiptail) but I'm now doing a wrapper around gtkdialog so those scripts will work nicely in GUI sessions.

          I guess that will be valuable here, too....
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 04:32:57 am
          Charging time:
          I may be posting all my excitement to the wrong place - if so, sorry:

          When running of usb, /proc/apm gives screwy values, these were about 1 second apart

          Code: [Select]
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -1044 min
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -498 min
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -588 min
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -10792 min
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -490 min
          htcuni:~# cat /proc/apm
          1.13 1.2 0x02 0x01 0x03 0x03 77% -2023 min
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 04:39:52 am
          I also have to restart /etc/rcS.d/S99htcuni-keypress after suspend, or backlight button doesn't work.

          And a tip for others, to set the timezone:
          dpkg-reconfigure tzdata

          Sam
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 05:06:22 am
          Quote from: Sam Liddicott
          I also have to restart /etc/rcS.d/S99htcuni-keypress after suspend, or backlight button doesn't work.
          Already fixed.  Add my repository to /etc/apt/sources:
          Code: [Select]
          deb http://debian.neilandtheresa.co.uk/ titchy/and install titchy-button-daemon (note the name change).  Install titchy-base to get all the updated packages.
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 05:10:06 am
          Quote from: Sam Liddicott
          I'm loving this, thanks guys; some questions though:

          Can I specify a different timeout for htcuni-autosuspend when running on USB?
          Yep.  Install titchy-autosuspend-daemon (note the name change) from my repository.
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 05:20:37 am
          Quote from: Sam Liddicott
          I rang my phone and it went straight on to voicemail...
          Maybe the phone hadn't finished registering with the network.
          Code: [Select]
          htcunid network
          Quote
          And finally, datathief and ShiroiKuma; how did you setup your build system to cross-compile debs?
          I'm running ubuntu with some from-source debian packages; I'll generally just get a deb-src, but please could you tell me your spell for cross-building debs?
          I haven't cross-compiled any debs.  All my work is in the form of shell scripts and python...
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 05:50:04 am
          Quote from: datathief
          Quote from: Sam Liddicott
          I also have to restart /etc/rcS.d/S99htcuni-keypress after suspend, or backlight button doesn't work.
          Already fixed.  Add my repository to /etc/apt/sources:
          Code: [Select]
          deb http://debian.neilandtheresa.co.uk/ titchy/and install titchy-button-daemon (note the name change).  Install titchy-base to get all the updated packages.

          Do they appropriately obsolete the older htc* packages or will I have to first remove those manually, do you think?

          Sam
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 07:21:57 am
          Quote from: Sam Liddicott
          Do they appropriately obsolete the older htc* packages or will I have to first remove those manually, do you think?
          They do correctly specify the "Replaces:" tag, so the old packages will be uninstalled.  They'll also migrate your configuration files from the old packages.  It's probably worth checking that everything works before you rely on it as your primary phone, but I haven't had any problems so far.

          I have found some new bugs unrelated to the repackaging, though:  alarms don't work until the phone has been suspended and resumed at least once, and there's no error message if you try to send SMS with no credit...  I need to build a bug tracker.
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 07:46:16 am
          Quote from: datathief
          Quote from: Sam Liddicott
          Do they appropriately obsolete the older htc* packages or will I have to first remove those manually, do you think?
          They do correctly specify the "Replaces:" tag, so the old packages will be uninstalled.  They'll also migrate your configuration files from the old packages.  It's probably worth checking that everything works before you rely on it as your primary phone, but I haven't had any problems so far.

          I have found some new bugs unrelated to the repackaging, though:  alarms don't work until the phone has been suspended and resumed at least once, and there's no error message if you try to send SMS with no credit...  I need to build a bug tracker.

          Aye...

          apm (as has been noted) gives bogus values and it's hard to tell if the battery charges via usb. Something screwy is going on because just now it wouldn't even charge via usb when running WM6.1 with my laptop running winXP, until I did a hard-reset-forget-everything on the universal.

          Both devices are back to linux and I'll watch and see if the battery is charging or discharging; apm says:

          Code: [Select]
          mojo:~# for g in 1 2 3 4 5; do printf "`date` "; apm; sleep 1; done
          Thu May  8 12:37:09 BST 2008 On-line, battery status high: 96% (6d+22:29:00)
          Thu May  8 12:37:10 BST 2008 On-line, battery status high: 96% (20:26:00)
          Thu May  8 12:37:11 BST 2008 On-line, battery status high: 96% (2d+0:33:00)
          Thu May  8 12:37:12 BST 2008 On-line, battery status high: 96% (4d+1:07:00)
          Thu May  8 12:37:13 BST 2008 On-line, battery status high: 96% (1d+12:59:00)

          However:

          Code: [Select]
          mojo:/# cat /sys/class/power_supply/ds2760-battery.0/status
          Charging

          While I had time over christmas I was improving lazarus packaging in anticipation of this, so I think my first compile will be the complete lazarus IDE...

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 08:18:07 am
          Quote from: datathief
          Quote from: Sam Liddicott
          I also have to restart /etc/rcS.d/S99htcuni-keypress after suspend, or backlight button doesn't work.
          Already fixed.  Add my repository to /etc/apt/sources:
          Code: [Select]
          deb http://debian.neilandtheresa.co.uk/ titchy/and install titchy-button-daemon (note the name change).  Install titchy-base to get all the updated packages.

          titchy-base did not install titchy-phone-daemon

          also; dmesg output relating to charging:

          Code: [Select]
          [  328.720000] generic ttyUSB0: generic converter now disconnected from ttyUSB0
          [  328.730000] usbserial_generic 1-1:1.0: device disconnected
          [  328.740000] generic ttyUSB1: generic converter now disconnected from ttyUSB1
          [  328.740000] usbserial_generic 1-1:1.1: device disconnected
          [  328.810000] done.
          [  329.050000] usb 1-1: new full speed USB device using pxa27x-ohci and address 4
          [  329.230000] usb 1-1: configuration #1 chosen from 1 choice
          [  329.230000] usbserial_generic 1-1:1.0: generic converter detected
          [  329.230000] usb 1-1: generic converter now attached to ttyUSB0
          [  329.230000] usbserial_generic 1-1:1.1: generic converter detected
          [  329.230000] usb 1-1: generic converter now attached to ttyUSB1
          [  330.260000] phone mic enable called. on=1
          [  368.120000] udc: USB reset
          [  368.360000] udc: USB reset
          [  368.470000] udc: USB reset
          [  368.670000] usb0: full speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet Subset
          [  369.100000] ds2760-battery ds2760-battery.0: not enough power to charge
          [  566.860000] htcuniversal configure phone: 2
          [  566.860000] tried to call phone_off, stack will follow:
          [  566.860000] htcuniversal configure phone: 3
          [  616.110000] htcuniversal powerdown_lcd: called
          [  728.670000] htcuniversal powerup_lcd: called
          [  729.190000] ds2760-battery ds2760-battery.0: not enough power to charge
          [ 1336.860000] htcuniversal powerdown_lcd: called
          [ 1936.970000] htcuniversal powerdown_lcd: called
          [ 2285.050000] htcuniversal configure phone: 0
          [ 2285.050000] htcuniversal configure phone: 1
          [ 2314.870000] htcuniversal powerup_lcd: called
          [ 2349.480000] ds2760-battery ds2760-battery.0: not enough power to charge

          "not enough power to charge" is strange cos charge has gone from 96% to 99%

          I sent an sms to myself from an ssh login, and after acknowledging receipt via whiptail the screen went blank;
          chvt 7
          does nothing and chvt 1, hangs, eventually my X session died and restarted.

          I don't mean these to sound like whining, I'm just reporting what happens.
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 08:44:27 am
          Quote from: Sam Liddicott
          titchy-base did not install titchy-phone-daemon
          True.  Titchy will eventually run on both Zaurus and Universal  -  the phone stuff doesn't make much sense on the Zaurus, so I left it out...

          Quote
          "not enough power to charge" is strange cos charge has gone from 96% to 99%
          I think it's safe to ignore this if it does actually charge.

          Quote
          I sent an sms to myself from an ssh login, and after acknowledging receipt via whiptail the screen went blank;
          chvt 7
          does nothing and chvt 1, hangs, eventually my X session died and restarted.
          This could be a problem with X.  Can you try (with X running):
          Code: [Select]
          openvt -w -s -- sleep 2X should come back after 2 seconds.
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 09:43:23 am
          Quote from: datathief
          Quote from: Sam Liddicott
          titchy-base did not install titchy-phone-daemon
          True.  Titchy will eventually run on both Zaurus and Universal  -  the phone stuff doesn't make much sense on the Zaurus, so I left it out...

          Quote
          "not enough power to charge" is strange cos charge has gone from 96% to 99%
          I think it's safe to ignore this if it does actually charge.

          Aye, although I had to do the hard-reset in order to make it actually charge...

          Quote from: datathief
          Quote
          I sent an sms to myself from an ssh login, and after acknowledging receipt via whiptail the screen went blank;
          chvt 7
          does nothing and chvt 1, hangs, eventually my X session died and restarted.
          This could be a problem with X.  Can you try (with X running):
          Code: [Select]
          openvt -w -s -- sleep 2X should come back after 2 seconds.

          It works repeatedly, although it often doesn't switch back from whiptail...

          I also note they key-repeat has stopped working.

          Am I daft to think I need to install wpasupplicant?

          Sam
          Title: Htc Universal
          Post by: datathief on May 08, 2008, 11:06:37 am
          Quote from: Sam Liddicott
          It works repeatedly, although it often doesn't switch back from whiptail...
          Are there any other scripts in /etc/titchy-phone-daemon/event.d that could be doing something to affect it?  Does X come back after:
          Code: [Select]
          openvt -w -s -- whiptail --msgbox "test" 20 50
          Quote
          I also note they key-repeat has stopped working.
          Are KEYBOARD_RATE and KEYBOARD_DELAY set properly in /etc/console-tools/config?  You can use this command to set the key repeat rate and delay back to the defaults:
          Code: [Select]
          kbdrate -r 30 -d 250
          Quote
          Am I daft to think I need to install wpasupplicant?
          I've no idea whether WPA works with this wifi driver.
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 11:28:13 am
          Quote from: datathief
          Quote from: Sam Liddicott
          It works repeatedly, although it often doesn't switch back from whiptail...
          Are there any other scripts in /etc/titchy-phone-daemon/event.d that could be doing something to affect it?  Does X come back after:
          Code: [Select]
          openvt -w -s -- whiptail --msgbox "test" 20 50

          That killed the x session again the first time I did it, but worked afterwards.

          I noticed that "ps -fade" showed a couple of whiptail notifications that were still running, which I also killed.
          I'll see what data I can gather if it goes wrong again.

          Quote from: datathief
          Quote
          I also note they key-repeat has stopped working.
          Are KEYBOARD_RATE and KEYBOARD_DELAY set properly in /etc/console-tools/config?  You can use this command to set the key repeat rate and delay back to the defaults:
          Code: [Select]
          kbdrate -r 30 -d 250

          Code: [Select]
          # kbdrate -r 30 -d 250
          Cannot open /dev/port: No such file or directory

          I don't have a /dev/port; the times were commented out in the config file, I have un-commented and we will see what happens -
          however, I think unrelated to that config, the keyboard repeat has come back when the X session died. Weird.

          Quote from: datathief
          Quote
          Am I daft to think I need to install wpasupplicant?
          I've no idea whether WPA works with this wifi driver.

          Thanks for your help on this.
          Title: Htc Universal
          Post by: p3t3r on May 08, 2008, 11:59:19 am
          wpa_supplicant does not work with 2.6.21-hh20s' acx driver - i tried it, but as it isn't supported officially, it does not work. There is a mac80211 acx driver, which supports WPA, but it isn't available in a kernel for HTC Universal, yet.  


          Quote from: Sam Liddicott
          Am I daft to think I need to install wpasupplicant?

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 12:07:00 pm
          Quote from: datathief
          Quote from: Sam Liddicott
          It works repeatedly, although it often doesn't switch back from whiptail...

          Quote
          Am I daft to think I need to install wpasupplicant?
          I've no idea whether WPA works with this wifi driver.

          I will try the max80211 + acx as explained here:
          http://acx100.sourceforge.net/wiki/WPA (http://acx100.sourceforge.net/wiki/WPA)

          building my kernel according to:
          http://handhelds.org/moin/moin.cgi/UniversalKernel (http://handhelds.org/moin/moin.cgi/UniversalKernel)

          using the config of my current sumuo supplied kernel
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2008, 05:11:27 pm
          Quote from: datathief
          Quote from: Sam Liddicott
          I also have to restart /etc/rcS.d/S99htcuni-keypress after suspend, or backlight button doesn't work.
          Already fixed.  Add my repository to /etc/apt/sources:
          Code: [Select]
          deb http://debian.neilandtheresa.co.uk/ titchy/and install titchy-button-daemon (note the name change).  Install titchy-base to get all the updated packages.

          it seems like every now and then i come out of suspend, the backlight button doesnt work.

          If I suspend and unsuspend then it works.

          interestingly my fn key seems to do nothing in ice hamster right now but works in xterm

          are these kinds of reports appropriate (no question mark, sorry)
          Title: Htc Universal
          Post by: webdork on May 08, 2008, 09:56:53 pm
          Quote from: Sam Liddicott
          I will try the max80211 + acx as explained here:
          http://acx100.sourceforge.net/wiki/WPA (http://acx100.sourceforge.net/wiki/WPA)

          building my kernel according to:
          http://handhelds.org/moin/moin.cgi/UniversalKernel (http://handhelds.org/moin/moin.cgi/UniversalKernel)

          using the config of my current sumuo supplied kernel

          Please post your results!
          Title: Htc Universal
          Post by: ArchiMark on May 08, 2008, 10:11:10 pm
          Quote from: ShiroiKuma
          Full X with phone utilities installed working image available

          I've generated a full working image of the Debian GNU/Linux for the Universal, that contains X with xdm and icewm installed as the WM. And it includes full working datathief's phone scripts, and also additional generated kernel modules to enable mounting LUKS/DM encrypted volumes.

          The image is easily installed in three steps and gives you a full working X phone distribution without additional modifications right after install.

          It's huge though, 245 Megs bzipped, expanded takes around 600 Megs.

          You can get it with the instructions on install at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20Debian%20GNU/Linux%20on%20the%20Universal)

          BTW, it is Debian Sid, i.e. unstable, not Lenny, i.e. Testing.

          Thanks for sharing your image file with everyone, ShiroiKuma!

          I've tried several times today, both at work and at home to download the image file.

          Each time I get a file that is less than the 245MB's that you've listed, largest download I've gotten is about 233MB and sometimes much less....

          Anyone got any ideas why this is happening and any suggestions to get full download file???

          Would really like to try this image....

          Thanks!

           
          Title: Htc Universal
          Post by: ShiroiKuma on May 09, 2008, 03:19:35 am
          Quote from: ArchiMark
          Each time I get a file that is less than the 245MB's that you've listed, largest download I've gotten is about 233MB and sometimes much less....

          Anyone got any ideas why this is happening and any suggestions to get full download file???
          You're downloading it from a browser, the line gets dropped in trasmission. Get it by:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']$ wget -c http://sumoudou.org/uni/shiroikuma-univers...0080507.tar.bz2 (http://sumoudou.org/uni/shiroikuma-universal-rootfs-20080507.tar.bz2)[/div]
          Title: Htc Universal
          Post by: Sam Liddicott on May 09, 2008, 04:30:44 am
          Dead in the morning:

          Last night at around 10:10 I turned off (suspended) my universal. This morning, the battery was flat;
          Syslog shows that it woke up at 1:00am, reason unknown

           here is syslog.

          It claims to have suspended 30 seconds later, and maybe it did but by morning the battery was totally gone.

          Code: [Select]
          Syslog:

          May  8 22:11:25 mojo ntpd[3074]: sendto(208.75.88.4) (fd=20): Invalid argument
          May  8 22:11:49 mojo ntpd[3074]: sendto(217.160.254.116) (fd=20): Invalid argument
          May  8 22:12:09 mojo ntpd[3074]: sendto(155.101.3.115) (fd=20): Invalid argument
          May  8 22:12:15 mojo kernel: [ 6771.340000] Unbalanced IRQ 31 wake disable
          May  8 22:12:15 mojo kernel: [ 6771.340000] BUG: at kernel/irq/manage.c:207 set_irq_wake()
          May  8 22:12:16 mojo kernel: [ 6771.890000] mono_out status 0x00000050 -> 0x00000040
          May  8 22:12:19 mojo apmd[1254]: Suspending now
          May  9 01:00:02 mojo kernel: [ 6776.950000] Stopping tasks ... done.
          May  9 01:00:02 mojo kernel: [ 6776.990000] Suspending console(s)
          May  9 01:00:02 mojo kernel: [ 6777.000000] usbserial_generic 1-1:1.0: no suspend for driver usbserial_generic?
          May  9 01:00:02 mojo kernel: [ 6777.000000] usbserial_generic 1-1:1.1: no suspend for driver usbserial_generic?
          May  9 01:00:02 mojo kernel: [ 6777.000000] acx: suspend handler is experimental!
          May  9 01:00:02 mojo kernel: [ 6777.000000] sus: dev c06e8000
          May  9 01:00:02 mojo kernel: [ 6777.000000] snd_htcuniversal_audio_set_codec_power: 0
          May  9 01:00:02 mojo kernel: [ 6777.000000] htcuniversal_ts2_suspend: called.
          May  9 01:00:02 mojo kernel: [ 6777.000000] htcuniversal powerdown_lcd: called
          May  9 01:00:02 mojo kernel: [ 6777.130000] htcuniversal configure phone: 2
          May  9 01:00:02 mojo kernel: [ 6777.130000] tried to call phone_off, stack will follow:
          May  9 01:00:02 mojo kernel: [ 6777.130000] htcuniversal configure phone: 3
          May  9 01:00:02 mojo kernel: [ 6777.330000] htcuniversal_suspend
          May  9 01:00:02 mojo kernel: [ 6777.330000] htcuniversal_pxa_ll_pm_suspend called
          May  9 01:00:02 mojo kernel: [ 6777.330000] htcuniversal_pxa_ll_pm_resume called
          May  9 01:00:02 mojo kernel: [ 6777.330000] htcuniversal_resume
          May  9 01:00:02 mojo kernel: [ 6777.330000] min dma period: 769224 ps, new clock 624000 kHz
          May  9 01:00:02 mojo kernel: [ 6777.330000] min dma period: 769224 ps, new clock 624000 kHz
          May  9 01:00:02 mojo kernel: [ 6777.440000] htcuniversal configure phone: 0
          May  9 01:00:02 mojo kernel: [ 6777.440000] htcuniversal configure phone: 1
          May  9 01:00:02 mojo kernel: [ 6777.460000] asic3_mmc: starting resume
          May  9 01:00:02 mojo kernel: [ 6778.520000] asic3_mmc: finished resume
          May  9 01:00:02 mojo kernel: [ 6778.520000] htcuniversal powerup_lcd: called
          May  9 01:00:02 mojo kernel: [ 6778.650000] htcuniversal_ts2_resume: called.
          May  9 01:00:02 mojo kernel: [ 6778.650000] usb usb1: root hub lost power or was reset
          May  9 01:00:02 mojo kernel: [ 6778.730000] SACR0 = 0x7700, SADIV = 0x1a
          May  9 01:00:02 mojo kernel: [ 6778.730000] snd_htcuniversal_audio_set_codec_reset: 1
          May  9 01:00:02 mojo kernel: [ 6778.730000] snd_htcuniversal_audio_set_codec_power: 1
          May  9 01:00:02 mojo kernel: [ 6778.750000] snd_htcuniversal_audio_set_codec_reset: 0
          May  9 01:00:02 mojo kernel: [ 6778.750000] snd_htcuniversal_audio_set_headphone_detect: 0
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep00: PM: resume from 0, parent 1-1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000] usbserial_generic 1-1:1.0: PM: resume from 2, parent 1-1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000] generic ttyUSB0: PM: resume from 0, parent 1-1:1.0 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep81: PM: resume from 0, parent 1-1:1.0 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep82: PM: resume from 0, parent 1-1:1.0 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep02: PM: resume from 0, parent 1-1:1.0 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000] usbserial_generic 1-1:1.1: PM: resume from 2, parent 1-1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000] generic ttyUSB1: PM: resume from 0, parent 1-1:1.1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep84: PM: resume from 0, parent 1-1:1.1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14_ep04: PM: resume from 0, parent 1-1:1.1 still 2
          May  9 01:00:02 mojo kernel: [ 6778.750000]  usbdev1.14: PM: resume from 0, parent 1-1 still 2
          May  9 01:00:02 mojo kernel: [ 6779.010000] Restarting tasks ... acx: resume handler is experimental!
          May  9 01:00:02 mojo kernel: [ 6779.020000] usb 1-1: USB disconnect, address 14
          May  9 01:00:02 mojo kernel: [ 6779.030000] rsm: got dev c06e8000
          May  9 01:00:02 mojo kernel: [ 6779.030000] generic ttyUSB0: generic converter now disconnected from ttyUSB0
          May  9 01:00:02 mojo kernel: [ 6779.040000] usbserial_generic 1-1:1.0: device disconnected
          May  9 01:00:02 mojo kernel: [ 6779.050000] generic ttyUSB1: generic converter now disconnected from ttyUSB1
          May  9 01:00:02 mojo kernel: [ 6779.050000] usbserial_generic 1-1:1.1: device disconnected
          May  9 01:00:02 mojo kernel: [ 6779.140000] done.
          May  9 01:00:02 mojo kernel: [ 6779.360000] usb 1-1: new full speed USB device using pxa27x-ohci and address 15
          May  9 01:00:02 mojo kernel: [ 6779.540000] usb 1-1: configuration #1 chosen from 1 choice
          May  9 01:00:02 mojo kernel: [ 6779.540000] usbserial_generic 1-1:1.0: generic converter detected
          May  9 01:00:02 mojo kernel: [ 6779.540000] usb 1-1: generic converter now attached to ttyUSB0
          May  9 01:00:02 mojo kernel: [ 6779.540000] usbserial_generic 1-1:1.1: generic converter detected
          May  9 01:00:02 mojo kernel: [ 6779.540000] usb 1-1: generic converter now attached to ttyUSB1
          May  9 01:00:04 mojo kernel: [ 6781.440000] phone mic enable called. on=1
          May  9 01:00:06 mojo apmd[1254]: Warning: BATTERY IS LOW
          May  9 01:00:06 mojo ntpd[3074]: sendto(192.43.244.18) (fd=20): Invalid argument
          May  9 01:00:07 mojo apmd[1254]: Warning: Battery: 33%, discharging (-42% over 2:47:48)
          May  9 01:00:09 mojo ntpd[3074]: sendto(208.75.88.4) (fd=20): Invalid argument
          May  9 01:00:15 mojo ntpd[3074]: Deleting interface #5 wlan1, 192.168.182.11#123, interface stats: received=0, sent=1, dropped=42, active_time=300 secs
          May  9 01:02:30 mojo kernel: [ 6927.320000] Unbalanced IRQ 31 wake disable
          May  9 01:02:30 mojo kernel: [ 6927.320000] BUG: at kernel/irq/manage.c:207 set_irq_wake()
          May  9 01:02:30 mojo kernel: [ 6927.690000] mono_out status 0x00000050 -> 0x00000040
          May  9 01:02:32 mojo apmd[1254]: Suspending now
          Feb  1 19:37:56 mojo syslogd 1.5.0#2: restart.
          Title: Htc Universal
          Post by: datathief on May 09, 2008, 06:39:33 am
          Quote from: Sam Liddicott
          Dead in the morning:

          Last night at around 10:10 I turned off (suspended) my universal. This morning, the battery was flat;
          There are definitely still issues with wifi power consumption.  Note the "acx: suspend handler is experimental!" messages in syslog.  It's possible to power the wifi module down completely by hacking about in the processor's address space.  I'll look up the commands.

          Quote
          Syslog shows that it woke up at 1:00am, reason unknown
          I've just checked my syslog, and mine's waking at midnight.  I'll see if I can find anything in the CPU manual...
          Title: Htc Universal
          Post by: Sam Liddicott on May 09, 2008, 07:43:00 am
          Quote from: datathief
          Quote from: Sam Liddicott
          Dead in the morning:

          Last night at around 10:10 I turned off (suspended) my universal. This morning, the battery was flat;
          There are definitely still issues with wifi power consumption.  Note the "acx: suspend handler is experimental!" messages in syslog.  It's possible to power the wifi module down completely by hacking about in the processor's address space.  I'll look up the commands.

          Quote
          Syslog shows that it woke up at 1:00am, reason unknown
          I've just checked my syslog, and mine's waking at midnight.  I'll see if I can find anything in the CPU manual...

          So the wakeup is not unusual and the battery drain is probably because I had modprobe'd acx.

          I'm playing with glade and gtkdialog to knock up a rough phone ui

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 09, 2008, 07:47:01 am
          (I'm running sumou's image with the titchy mobile updates)

          # apt-get install titchy-desktop
          ...
          The following extra packages will be installed:
            a2ps desktop-base desktop-file-utils desktop-profiles exo-utils fortune-mod
            fortunes-min gamin gtk2-engines-xfce hal libexif12 libexo-0.3-0 libgamin0
            libgl1-mesa-dri libglu1-mesa libjpeg-progs libthunar-vfs-1-2 liburi-perl
            libxfce4mcs-client3 libxfce4mcs-manager3 libxfce4util4 libxfcegui4-4
            miscfiles orage psutils thunar thunar-data ttf-bitstream-vera wdiff xbitmaps
            xfce4 xfce4-battery-plugin xfce4-icon-theme xfce4-mcs-manager
            xfce4-mcs-plugins xfce4-mixer xfce4-mixer-alsa xfce4-panel xfce4-session
            xfce4-terminal xfce4-utils xfdesktop4 xfdesktop4-data xfonts-75dpi xfprint4
            xfwm4 xfwm4-themes xkb-data xli xorg xorg-docs xscreensaver
            xscreensaver-data xserver-xorg xserver-xorg-core xserver-xorg-input-evdev
            xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-input-wacom
            xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
            xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus
            xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev
            xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740
            xserver-xorg-video-imstt xserver-xorg-video-mga xserver-xorg-video-neomagic
            xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv
            xserver-xorg-video-rendition xserver-xorg-video-s3
            xserver-xorg-video-s3virge xserver-xorg-video-savage
            xserver-xorg-video-siliconmotion xserver-xorg-video-sis
            xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga
            xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l
            xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via
            xserver-xorg-video-voodoo xterm

          Surely it doesn't need all those hardware specific xserver drivers?
          Title: Htc Universal
          Post by: p3t3r on May 09, 2008, 08:06:26 am
          Of course it doesn't need them, but there are lot of dependencies in Debian packages (at least that's what I experienced) we don't need at all. As an example: Abiword depends printing stuff and Gnome - I compiled it myself on Universal (insane, huh? was to lazy to set up a crosscompiling toolchain and to get all these dependencies) with embedded UI and without printing (we could print via bluetooth, btw... ^^).
          There must be a reason for the existance of other distributions - probably someone should setup a repository for small packages, which have less dependencies as they are build for embedded devices, just to save memory. But somehow that might be close to a whole new distribution...

          Quote from: Sam Liddicott
          (I'm running sumou's image with the titchy mobile updates)

          # apt-get install titchy-desktop
          ...
          The following extra packages will be installed:
            a2ps desktop-base desktop-file-utils desktop-profiles exo-utils fortune-mod
            fortunes-min gamin gtk2-engines-xfce hal libexif12 libexo-0.3-0 libgamin0
            libgl1-mesa-dri libglu1-mesa libjpeg-progs libthunar-vfs-1-2 liburi-perl
            libxfce4mcs-client3 libxfce4mcs-manager3 libxfce4util4 libxfcegui4-4
            miscfiles orage psutils thunar thunar-data ttf-bitstream-vera wdiff xbitmaps
            xfce4 xfce4-battery-plugin xfce4-icon-theme xfce4-mcs-manager
            xfce4-mcs-plugins xfce4-mixer xfce4-mixer-alsa xfce4-panel xfce4-session
            xfce4-terminal xfce4-utils xfdesktop4 xfdesktop4-data xfonts-75dpi xfprint4
            xfwm4 xfwm4-themes xkb-data xli xorg xorg-docs xscreensaver
            xscreensaver-data xserver-xorg xserver-xorg-core xserver-xorg-input-evdev
            xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-input-wacom
            xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
            xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus
            xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev
            xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740
            xserver-xorg-video-imstt xserver-xorg-video-mga xserver-xorg-video-neomagic
            xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv
            xserver-xorg-video-rendition xserver-xorg-video-s3
            xserver-xorg-video-s3virge xserver-xorg-video-savage
            xserver-xorg-video-siliconmotion xserver-xorg-video-sis
            xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga
            xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l
            xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via
            xserver-xorg-video-voodoo xterm

          Surely it doesn't need all those hardware specific xserver drivers?
          Title: Htc Universal
          Post by: datathief on May 09, 2008, 08:26:59 am
          Quote from: Sam Liddicott
          So the wakeup is not unusual
          It looks like Windows Mobile sets the processor to wake at midnight so it can sort through the day's alarms, etc.  If that's what's causing it, I haven't yet found how it does it, or how to unset it.

          Quote
          and the battery drain is probably because I had modprobe'd acx.
          I think so.  In lieu of a non-broken driver, maybe we need an apmd script to take care of bringing wlan0 down and unloading acx (note:  don't unload htcuniversal-acx; bad things happen).
          Title: Htc Universal
          Post by: datathief on May 09, 2008, 08:31:34 am
          Quote from: Sam Liddicott
          Surely it doesn't need all those hardware specific xserver drivers?
          I actually think this is a bug  -  XFCE4 depends specifically on the x.org X server.  I've changed my xserver-titchy package so that it pretends to be the x.org package.

          I've a feeling xserver-titchy conflicts somehow with the work ShiroiKuma did to get his own working X setup, though.
          Title: Htc Universal
          Post by: ShiroiKuma on May 09, 2008, 08:43:45 am
          Quote from: datathief
          I've a feeling xserver-titchy conflicts somehow with the work ShiroiKuma did to get his own working X setup, though.
          Not in my roofts, this was before. However the rootfs is based on xserver-titchy, with none of the other hacks tried before to get working X. So there's no conflict there.
          Title: Htc Universal
          Post by: datathief on May 09, 2008, 08:55:40 am
          Quote from: ShiroiKuma
          Quote from: datathief
          I've a feeling xserver-titchy conflicts somehow with the work ShiroiKuma did to get his own working X setup, though.
          Not in my roofts, this was before. However the rootfs is based on xserver-titchy, with none of the other hacks tried before to get working X. So there's no conflict there.
          Alright, then upgrading xserver-titchy should work.
          Title: Htc Universal
          Post by: ShiroiKuma on May 09, 2008, 08:56:01 am
          Quote from: datathief
          I actually think this is a bug  -  XFCE4 depends specifically on the x.org X server.  I've changed my xserver-titchy package so that it pretends to be the x.org package.
          I know this is the legacy of Z Titchy, but I fail to see the advantage of the desktop package having a dependency on XFCE4 rather than icewm-experimental. The XFCE4 is so heavy now, that it's not really a "lightweight" wm alternative anymore.
          Title: Htc Universal
          Post by: ShiroiKuma on May 09, 2008, 08:56:49 am
          Quote from: datathief
          Alright, then upgrading xserver-titchy should work.
          It works.
          Title: Htc Universal
          Post by: datathief on May 09, 2008, 09:08:27 am
          Quote from: ShiroiKuma
          Quote from: datathief
          I actually think this is a bug  -  XFCE4 depends specifically on the x.org X server.  I've changed my xserver-titchy package so that it pretends to be the x.org package.
          I know this is the legacy of Z Titchy, but I fail to see the advantage of the desktop package having a dependency on XFCE4 rather than icewm-experimental. The XFCE4 is so heavy now, that it's not really a "lightweight" wm alternative anymore.
          I'm waiting to see what happens in this thread (https://www.oesf.org/forum/index.php?showtopic=25644&st=20).
          Title: Htc Universal
          Post by: ArchiMark on May 09, 2008, 11:05:48 am
          Quote from: ArchiMark
          Each time I get a file that is less than the 245MB's that you've listed, largest download I've gotten is about 233MB and sometimes much less....

          Anyone got any ideas why this is happening and any suggestions to get full download file???

          Quote from: ShiroiKuma
          You're downloading it from a browser, the line gets dropped in trasmission.
          Get it by:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']$ wget -c http://sumoudou.org/uni/shiroikuma-univers...0080507.tar.bz2 (http://sumoudou.org/uni/shiroikuma-universal-rootfs-20080507.tar.bz2)[/div]

          Yup, that did it, ShiroiKuma!

          Thanks!

           
          Title: Htc Universal
          Post by: webdork on May 09, 2008, 12:37:28 pm
          Is it possible to compile apps on the universal with Debian installed? Has anyone been successful in doing so? I have two small apps that I would like to build for it
          Title: Htc Universal
          Post by: p3t3r on May 09, 2008, 01:08:40 pm
          It's possible.
          Quote from: webdork
          Is it possible to compile apps on the universal with Debian installed? Has anyone been successful in doing so? I have two small apps that I would like to build for it

          You will need to install several packages (gcc, make...) but it works actually, though it is pretty slow to do so - depending on the applications size - I compiled a version of abiword with embedded gui
          Title: Htc Universal
          Post by: wolfy on May 10, 2008, 10:15:33 am
          datathief Please HELP ME  

          I instaled rootfs and  titchy-desktop
          Everiting works fine, starts whith calibrate, desktop is fine etc etc

          But after restart X is starting automaticaly and now i`m bloked in
          Welcome to titchy login box

          I can`t login
          Haw to login in ???
          i make some combinations....
          root and without pass and whith pass root not work
          Every time when i try to login Mesage is LOGIN INCORRECT
          I not make one password for root and one regular user
          Title: Htc Universal
          Post by: ArchiMark on May 10, 2008, 10:42:57 am
          Hope someone can please advise....

          Installed ShiroiKuma's rootfs yesterday and overall is working well.

          Only thing is that I need to use WiFi to connect it to internet.

          Realized that 'wireless-tools' package is not included in rootfs....  

          Have tried unsuccessfully several times to get HTC Uni connected to net via my laptop (debian) as I did in previous install...have re-read the previous posts on this thread about this issue and has not helped this time..

          Can't figure out why, but this time I can't get connected nor can I even ping my laptop from my HTC or vice-versa. Always get 'host unreachable' error message.

          The other error message I get periodically now on my laptop is:

          Code: [Select]
          usb0:  kevent0 may have been dropped
          usb0:  kevent1 may have been dropped

          So, wondering either

          A) What to do get USB Networking working?

          or

           Is there a simple way to download a  'wireless-tools' package with all the related files so that I can then copy it over to my SD card, put SD in HTC and install from there?

          or

          C) Can we get a rootfs with the wireless-tools in it so that we don't have to go through all this to get on internet??

          or

          ??


          Thanks for any and all help!
          Title: Htc Universal
          Post by: Cagnulein on May 10, 2008, 11:25:45 am
          Quote from: wolfy
          datathief Please HELP ME  

          I instaled rootfs and  titchy-desktop
          Everiting works fine, starts whith calibrate, desktop is fine etc etc

          But after restart X is starting automaticaly and now i`m bloked in
          Welcome to titchy login box

          I can`t login
          Haw to login in ???
          i make some combinations....
          root and without pass and whith pass root not work
          Every time when i try to login Mesage is LOGIN INCORRECT
          I not make one password for root and one regular user

          username: root
          password:

          so enter root and when it asks for password press enter

          Quote from: ArchiMark
          Hope someone can please advise....

          Installed ShiroiKuma's rootfs yesterday and overall is working well.

          Only thing is that I need to use WiFi to connect it to internet.

          Realized that 'wireless-tools' package is not included in rootfs....  

          Have tried unsuccessfully several times to get HTC Uni connected to net via my laptop (debian) as I did in previous install...have re-read the previous posts on this thread about this issue and has not helped this time..

          Can't figure out why, but this time I can't get connected nor can I even ping my laptop from my HTC or vice-versa. Always get 'host unreachable' error message.

          The other error message I get periodically now on my laptop is:

          Code: [Select]
          usb0:  kevent0 may have been dropped
          usb0:  kevent1 may have been dropped

          So, wondering either

          A) What to do get USB Networking working?

          or

           Is there a simple way to download a  'wireless-tools' package with all the related files so that I can then copy it over to my SD card, put SD in HTC and install from there?

          or

          C) Can we get a rootfs with the wireless-tools in it so that we don't have to go through all this to get on internet??

          or

          ??


          Thanks for any and all help!

          post me the results of the command ifconfig on your pc and on your universal
          bye
          Title: Htc Universal
          Post by: wolfy on May 10, 2008, 11:35:54 am
          Quote from: Cagnulein
          Quote from: wolfy
          datathief Please HELP ME  

          I instaled rootfs and  titchy-desktop
          Everiting works fine, starts whith calibrate, desktop is fine etc etc

          But after restart X is starting automaticaly and now i`m bloked in
          Welcome to titchy login box

          I can`t login
          Haw to login in ???
          i make some combinations....
          root and without pass and whith pass root not work
          Every time when i try to login Mesage is LOGIN INCORRECT
          I not make one password for root and one regular user

          username: root
          password:

          so enter root and when it asks for password press enter


          I know..
          I make this

          username: root
          password:

          No password just enter
          But every time Mesage is LOGIN INCORRECT

          I cant enter in Desktop
          Haw to disable Login Box or what can i do ??
          Title: Htc Universal
          Post by: ShiroiKuma on May 10, 2008, 11:43:24 am
          Quote from: Cagnulein
          username: root
          password:

          so enter root and when it asks for password press enter
          This is actually a problem with xdm, that I observed when setting my rootfs. If you have a username with an empty password, like in this instance, xdm will NOT login, i.e. you get the login incorrect.

          That's why I set the root's password to root in my rootfs, specifically to overcome this. Anyhow if you logged in once, you should've changed root's password anyway, that should be automatic and not login as root with an empty pass.

          To solve your problem:

          Mount the SD card on a linux pc.
          In /etc/rc2.d rc3. rc4.d and rc5.d rename S99xdm to K01xdm

          Then you can boot on the Uni. X will not start. CHANGE THE ROOT'S PASSWORD. Then rename all the K01xdm files back to S99xdm.

          Reboot. X will start. You will be able to login normally.
          Title: Htc Universal
          Post by: ShiroiKuma on May 10, 2008, 11:44:51 am
          Quote from: ArchiMark
          A) What to do get USB Networking working?
          Don't know what the problem could be. I use USB according to the Wiki at Datathief's site with no prob. No changes in the rootfs necessary.
          Title: Htc Universal
          Post by: wolfy on May 10, 2008, 11:48:56 am
          Quote from: ShiroiKuma
          Mount the SD card on a linux pc.
          In /etc/rc2.d rc3. rc4.d and rc5.d rename S99xdm to K01xdm
          Then you can boot on the Uni. X will not start. CHANGE THE ROOT'S PASSWORD. Then rename all the K01xdm files back to S99xdm.
          Reboot. X will start. You will be able to login normally.

          Ok I see Your rootfs have default pass root, now i decided to try titchy desktop and this whose the first problem
          Now i whill mount my SD in Linux Live CD to resolve this problem
          Thx man
          Title: Htc Universal
          Post by: ShiroiKuma on May 10, 2008, 12:37:06 pm
          Quote from: wolfy
          Ok I see Your rootfs have default pass root, now i decided to try titchy desktop and this whose the first problem
          Now i whill mount my SD in Linux Live CD to resolve this problem
          Thx man
          Which rootfs are you using? If it's mine, you don't need to mount it and all the rest, just log into xdm with root user and root password. Then change it there.
          Title: Htc Universal
          Post by: wolfy on May 10, 2008, 01:52:01 pm
          Quote from: ShiroiKuma
          Quote from: wolfy
          Ok I see Your rootfs have default pass root, now i decided to try titchy desktop and this whose the first problem
          Now i whill mount my SD in Linux Live CD to resolve this problem
          Thx man
          Which rootfs are you using? If it's mine, you don't need to mount it and all the rest, just log into xdm with root user and root password. Then change it there.

          I have you roots And i see The pass for root is root

          Because i have 2 SD cards i decided to put separate You roots whith ICEWM and titchy roots whith titchy-desktop

          Now the problem whith login X on titchy-desktop is solved  Thx for informations
          /////////////////////////////////////////////
          And some sugestions for me
          I luck for some aplications to install in titchy-desktop like Text editor (abiword or openoffice is not present)
          Some images viewer
          And apache web server if exist ...  
          Title: Htc Universal
          Post by: datathief on May 10, 2008, 04:50:54 pm
          Quote from: ShiroiKuma
          This is actually a problem with xdm, that I observed when setting my rootfs. If you have a username with an empty password, like in this instance, xdm will NOT login, i.e. you get the login incorrect.
          I guess I'd better change my rootfs to have a default password...
          Title: Htc Universal
          Post by: datathief on May 10, 2008, 05:02:09 pm
          Quote from: wolfy
          I luck for some aplications to install in titchy-desktop like Text editor (abiword or openoffice is not present)
          Some images viewer
          And apache web server if exist ...  
          Abiword should work well.  Mousepad is a nice simple plain-text editor.  Mirage is a good image viewer.  You can install Apache if you wish.

          Check out the APT HOWTO at http://www.debian.org/doc/manuals/apt-howto/ (http://www.debian.org/doc/manuals/apt-howto/) - especially section 5.
          Title: Htc Universal
          Post by: datathief on May 10, 2008, 05:20:27 pm
          Quote from: ArchiMark
          Is there a simple way to download a  'wireless-tools' package with all the related files so that I can then copy it over to my SD card, put SD in HTC and install from there?
          Go to http://packages.debian.org/lenny/wireless-tools (http://packages.debian.org/lenny/wireless-tools) and find the link to download the "armel" version of the package.  You'll also need the libiw29 package.

          Quote
          C) Can we get a rootfs with the wireless-tools in it
          It's in my rootfs.  
          Title: Htc Universal
          Post by: datathief on May 10, 2008, 05:23:33 pm
          Quote from: Sam Liddicott
          it seems like every now and then i come out of suspend, the backlight button doesnt work.
          This happened to me today.  I'll look into it.
          Title: Htc Universal
          Post by: ShiroiKuma on May 10, 2008, 06:31:18 pm
          Re suspend, is it my impression, or have you modified the scripts, so that it doesn't suspend while on AC?
          Title: Htc Universal
          Post by: ArchiMark on May 10, 2008, 09:24:57 pm
          Quote from: ArchiMark
          Hope someone can please advise....

          Installed ShiroiKuma's rootfs yesterday and overall is working well.

          Only thing is that I need to use WiFi to connect it to internet.

          Realized that 'wireless-tools' package is not included in rootfs....  

          Have tried unsuccessfully several times to get HTC Uni connected to net via my laptop (debian). I did manage to get connected in previous install attempt ...
          Have re-read the previous posts on this thread about this issue and has not helped this time..

          Can't figure out why, but this time I can't get connected nor can I even ping my laptop from my HTC or vice-versa. Always get 'host unreachable' error message.

          The other error message I get periodically now on my laptop is:

          Code: [Select]
          usb0:  kevent0 may have been dropped
          usb0:  kevent1 may have been dropped

          So, wondering either

          A) What to do get USB Networking working?

          or

           Is there a simple way to download a  'wireless-tools' package with all the related files so that I can then copy it over to my SD card, put SD in HTC and install from there?

          or

          C) Can we get a rootfs with the wireless-tools in it so that we don't have to go through all this to get on internet??

          or

          ??


          Thanks for any and all help!

          Quote from: Cagnulein
          post me the results of the command ifconfig on your pc and on your universal
          bye


          Thanks for your help, Cagnulein!

          Here's 'ifconfig -a' from my laptop:

          Code: [Select]
          eth0      Link encap:Ethernet  HWaddr 00:17:42:8D:xx:xx  
                    UP BROADCAST MULTICAST  MTU:1500  Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
                    Interrupt:11 Base address:0xf800

          eth0:3    Link encap:Ethernet  HWaddr 00:17:42:8D:A0:13  
                    inet addr:169.254.5.34  Bcast:169.254.255.255  Mask:255.255.0.0
                    UP BROADCAST MULTICAST  MTU:1500  Metric:1
                    Interrupt:11 Base address:0xf800

          eth2      Link encap:Ethernet  HWaddr 00:05:1B:00:C4:39  
                    inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
                    inet6 addr: fe80::205:xxx:xxxx:c439/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:119 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:139 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:20526 (20.0 KiB)  TX bytes:11841 (11.5 KiB)

          lo        Link encap:Local Loopback  
                    inet addr:127.0.0.1  Mask:255.0.0.0
                    inet6 addr: ::1/128 Scope:Host
                    UP LOOPBACK RUNNING  MTU:16436  Metric:1
                    RX packets:40 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:0
                    RX bytes:3392 (3.3 KiB)  TX bytes:3392 (3.3 KiB)

          sit0      Link encap:IPv6-in-IPv4  
                    NOARP  MTU:1480  Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:0
                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

          usb0      Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet6 addr: fe80::a8d0:xxx:xxxx:5a65/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:96 errors:929954 dropped:0 overruns:0 frame:0
                    TX packets:14 errors:14 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:2688 (2.6 KiB)  TX bytes:3916 (3.8 KiB)

          usb0:3    Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet addr:169.254.6.176  Bcast:169.254.255.255  Mask:255.255.0.0
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          **Please note that I've connected a little USB mini-hub (AC powered) to my laptop USB port and then connected a USB ethernet device to the hub and a USB cable from the hub to my HTC Universal. Also, I used 'eth2' when setting up USB networking on the laptop.

          On my HTC Universal I get the following in 'ifconfig -a':
          Code: [Select]
          lo        Link encap:Local Loopback  
                    inet addr:127.0.0.1  Mask:255.0.0.0
                    UP LOOPBACK RUNNING  MTU:16436  Metric:1
                    RX packets:74 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:0
                    RX bytes:7133 (6.9 KiB)  TX bytes:7133 (6.9 KiB)

          usb0      Link encap:Ethernet  HWaddr ea:57:c4:2c:xx:xx  
                    inet addr: 192.168.3.3  Bcast: 192.168.3.255 Mask: 255.255.255.0
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:14 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:3784 (3.6 KiB)  TX bytes:4032 (3.9 KiB)

          wlan0      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
                    BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:0
                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
                    Interrupt: 196


          Still can't get ping to work when I do this from my HTC:
          Code: [Select]
          # ping -c 4 192.168.3.1
          PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data
          From 192.168.3.1 icmp_seq=1  Destination Host unreachable
          .....

          Also, would like to make sure that I'm putting the right nameserver address in '/etc/resolv.conf'.

          At home I connect my laptop via ethernet to my network. I use a combo DSL modem/WiFi/Router unit to connect to my DSL line and to my computers.

          So, which address should I be entering in '/etc/resolv.conf'?

          Here's some possible choices from my DSL Modem unit configuration page:

          CONNECTION INFORMATION:
          IP Address:         66.245.x.xxx
          Default Gateway: 66.245.x.x
          Primary DNS:      207.69.xxx.xxx
          Secondary DNS:  207.69.xxx.xxx

          LOCAL NETWORK:
          LAN IP Address:  192.168.x.x
          DHCP:                Enabled
          DHCP Range       192.168.x.x -
                                   192.168.x.xxx
          Ethernet             Connected


          Just don't understand why I was able to get this working before when I installed Debian using Titchy....unless something happened in the meantime on my laptop that changed something or ???

          Thanks for any and all help!
          Title: Htc Universal
          Post by: ArchiMark on May 10, 2008, 09:33:14 pm
          Quote from: ArchiMark
          Is there a simple way to download a  'wireless-tools' package with all the related files so that I can then copy it over to my SD card, put SD in HTC and install from there?

          Quote from: datathief
          Go to http://packages.debian.org/lenny/wireless-tools (http://packages.debian.org/lenny/wireless-tools) and find the link to download the "armel" version of the package.  You'll also need the libiw29 package.

          THANKS for the info, datathief!!!
           
           


          Quote
          C) Can we get a rootfs with the wireless-tools in it



          Quote from: datathief
          It's in my rootfs.  

          Now, you tell me!!!.....

           

          Thanks!

          UPDATE

          Managed to download and install wireless-tools. Then I was able to get connected to net via WiFi!

          Apt-get works now.....

           

          Still would like to know why I have been having such a hard time getting USB networking to work properly??? Just in case I need to use this technique sometime.....
          Title: Htc Universal
          Post by: ArchiMark on May 10, 2008, 09:38:59 pm
          Quote from: ArchiMark
          A) What to do get USB Networking working?
          Quote from: ShiroiKuma
          Don't know what the problem could be. I use USB according to the Wiki at Datathief's site with no prob. No changes in the rootfs necessary.

          Thanks, ShiroiKuma....

          The strange thing is that with my first attempt at installing Debian on HTC, I managed to get USB Networking working OK...so, I know that the instructions should work...but right now I can't get it to work....

          As for rootfs, it just seems to me that since the HTC doesn't have wired ethernet capability you either need a working WiFi connection or phone connection, right?

          So, if the 'wireless-tools' package was part of the basic rootfs, then we wouldn't need to screw around with USB networking to get online and there would be less posts about this (at least from me....   ).
          Title: Htc Universal
          Post by: datathief on May 11, 2008, 04:47:18 am
          Quote from: ShiroiKuma
          Re suspend, is it my impression, or have you modified the scripts, so that it doesn't suspend while on AC?
          See /etc/default/titchy-autosuspend-daemon.
          Title: Htc Universal
          Post by: Cagnulein on May 11, 2008, 04:56:55 am
          Quote from: ArchiMark
          Code: [Select]
          usb0      Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet6 addr: fe80::a8d0:xxx:xxxx:5a65/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:96 errors:929954 dropped:0 overruns:0 frame:0
                    TX packets:14 errors:14 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:2688 (2.6 KiB)  TX bytes:3916 (3.8 KiB)

          usb0:3    Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet addr:169.254.6.176  Bcast:169.254.255.255  Mask:255.255.0.0
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          i think the problem is the usb ip on your pc: it doesn't have a ipv4 ( like 192.168.3.1 )
          forcing an ipv4 should solve the problem
          let me know
          bye
          Title: Htc Universal
          Post by: ArchiMark on May 11, 2008, 10:26:13 am
          Quote from: ArchiMark
          Code: [Select]
          usb0      Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet6 addr: fe80::a8d0:xxx:xxxx:5a65/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                    RX packets:96 errors:929954 dropped:0 overruns:0 frame:0
                    TX packets:14 errors:14 dropped:0 overruns:0 carrier:0
                    collisions:0 txqueuelen:1000
                    RX bytes:2688 (2.6 KiB)  TX bytes:3916 (3.8 KiB)

          usb0:3    Link encap:Ethernet  HWaddr AA:D0:BB:58:5A:65  
                    inet addr:169.254.6.176  Bcast:169.254.255.255  Mask:255.255.0.0
                    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Quote from: Cagnulein
          i think the problem is the usb ip on your pc: it doesn't have a ipv4 ( like 192.168.3.1 )
          forcing an ipv4 should solve the problem
          let me know
          bye

          You're right, Cagnulein!

          Thanks!

           
          Title: Htc Universal
          Post by: ArchiMark on May 11, 2008, 11:06:09 am
          I was just trying to do 'apt-get update' and 'apt-get upgrade'.

          HTC Uni is connected to AC Power and WiFi is working.

          Just had the following happen now:

          1) While retrieving files during 'apt-get update' HTC did suspend....why would it suspend if I'm on AC power and in the middle of doing something?

          Do I need to adjust auto-suspend file to prevent this from happening?


          2) After turning HTC back on, I did 'apt-get upgrade'. Can see that it retrieved some files and then HTC just froze up in IceWM... clock hasn't changed time for about 5 minutes now....I can tap on screen and cursor will follow to each location, but no other response from HTC....


          Any idea why this happens or what to do to prevent it?

          Update

          Hmmm...HTC suspends, screen dark now....can  click 'space' key and display turns on again, but no other response from HTC in IceWM....

          Have tried 'Ctl(Mail)+C' and 'Ctl+Alt (Windoze)+Del'....neither seem to do anything.... hoping I could quit out of IceWM and get back to console....

          Reboot time I suppose?

          Update 2

          Well, decide to reboot....
           



          Thanks!
          Title: Htc Universal
          Post by: datathief on May 12, 2008, 05:19:04 am
          Quote from: ArchiMark
          1) While retrieving files during 'apt-get update' HTC did suspend....why would it suspend if I'm on AC power and in the middle of doing something?

          Do I need to adjust auto-suspend file to prevent this from happening?
          This is fixed in the newest version of the autosuspend daemon.  You can set separate timeouts for battery, AC and USB power, and you can specify a list of programs (like apt-get) that you don't want to suspend during.

          http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages)

          Quote
          Any idea why this happens or what to do to prevent it?
          If it happens again, let us know what the circumstances are.  If there's a pattern, we might be able to prevent it.
          Title: Htc Universal
          Post by: Sam Liddicott on May 12, 2008, 05:22:17 am
          Suspend command:
          I prefer this for my suspend action:

             openvt -w -s -- apm --suspend

          cos the screen goes black right away and so I know its doing something.
          Title: Htc Universal
          Post by: ShiroiKuma on May 13, 2008, 04:10:22 am
          Quote from: datathief
          Edit: Updated the script to work with the dash shell, which uses much less RAM than bash.
          Currently the whiptail script in /etc/titchy-phone-daemon/event.d/ doesn't work with dash, gives a missing function, or something, error. Must be run with bash.
          Title: Htc Universal
          Post by: datathief on May 13, 2008, 05:05:59 am
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: Updated the script to work with the dash shell, which uses much less RAM than bash.
          Currently the whiptail script in /etc/titchy-phone-daemon/event.d/ doesn't work with dash, gives a missing function, or something, error. Must be run with bash.
          You're right.  I haven't used the proper POSIX way to define the functions.

          I'll update the scripts on the wiki.

          Edit: Do you think it's worth packaging up the phone scripts to create a default phone UI?  Do you have problems with whiptail and X?
          Title: Htc Universal
          Post by: ShiroiKuma on May 13, 2008, 05:49:49 am
          Quote from: datathief
          Edit: Do you think it's worth packaging up the phone scripts to create a default phone UI?  Do you have problems with whiptail and X?
          I think it's definitely worth it.

          Whiptail and X works fine, that's why I haven't bothered with a GTK frontend, just eye-candy. Someone will do it eventually, but this works.

          There is one problem I think with whiptail now, which might be associated with key bindings. When in X, when in a call, the hangup button on the display flap, doesn't hangup. I.e. what hangs, I've found, in X, is double ESC, while the hangup button is not mapped to it. I vaguely recall it hanging up outside X, though don't know if I'm imagining, or it indeed does that. If yes, than probably some xbindkeys or xmodmap issue.

          And last thing missing from a default phone UI, well two actually, well three now that I think of it, are associated with loudness. I.e. already mentioned, when in a call, the volume keys on the side, should increase/decrease loudness. When the phone rings, moving the volume key should mute. And last thing is profiles, i.e. silent, vibe, ring.
          Title: Htc Universal
          Post by: Sam Liddicott on May 13, 2008, 05:16:42 pm
          The gtkdialog I have doesn't work properly on the universal, most of the button clicks handlers are not processed, but rather a critical assertion given.

          This is a shame because glade-3 (which also runs on the phone!!) was helping do some nice phone GUI.

          Sam
          Title: Htc Universal
          Post by: Chero on May 14, 2008, 02:56:50 am
          Quote from: Sam Liddicott
          The gtkdialog I have doesn't work properly on the universal, most of the button clicks handlers are not processed, but rather a critical assertion given.

          This is a shame because glade-3 (which also runs on the phone!!) was helping do some nice phone GUI.

          Sam

          I remember this problem with glade,
          Try configuring the app with

          LDFLAGS="-export-dynamic"

          it helped me out with gnocky.
          Chero.
          Title: Htc Universal
          Post by: datathief on May 14, 2008, 05:36:31 am
          I've added titchy-phoneui-base (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-base) and titchy-phoneui-console (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-console) to the Titchy repository.

          Quote from: ShiroiKuma
          There is one problem I think with whiptail now, which might be associated with key bindings. When in X, when in a call, the hangup button on the display flap, doesn't hangup. I.e. what hangs, I've found, in X, is double ESC, while the hangup button is not mapped to it. I vaguely recall it hanging up outside X, though don't know if I'm imagining, or it indeed does that. If yes, than probably some xbindkeys or xmodmap issue.
          This is currently working for me, with the above packages.

          Quote
          And last thing missing from a default phone UI, well two actually, well three now that I think of it, are associated with loudness. I.e. already mentioned, when in a call, the volume keys on the side, should increase/decrease loudness.
          Working.

          Quote
          When the phone rings, moving the volume key should mute.
          Working.

          Quote
          And last thing is profiles, i.e. silent, vibe, ring.
          I have a few ideas for this, but nothing working yet...
          Title: Htc Universal
          Post by: Cagnulein on May 14, 2008, 07:22:07 am
          Am i the only one who have problems with the duration of the battery? After 2 weeks of titchy i've obsverved that it runs for about 2 days with the full charge against the 4-5 days with WM6.

          Is it normal? i've used the phone with wifi off.
          Title: Htc Universal
          Post by: ShiroiKuma on May 14, 2008, 08:10:56 am
          Quote from: datathief
          I've added titchy-phoneui-base (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-base) and titchy-phoneui-console (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-console) to the Titchy repository.
          I get 403 Forbidden when trying to aptitude install the packages.

          There's some permissions problem on your site.

          From the browser:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Forbidden

          You don't have permission to access /titchy/titchy-phoneui-base.deb on this server.
          Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch7 mod_ssl/2.2.3 OpenSSL/0.9.8g Server at debian.neilandtheresa.co.uk Port 80[/div]
          Title: Htc Universal
          Post by: datathief on May 14, 2008, 08:15:02 am
          Quote from: ShiroiKuma
          Quote from: datathief
          I've added titchy-phoneui-base (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-base) and titchy-phoneui-console (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-console) to the Titchy repository.
          I get 403 Forbidden when trying to aptitude install the packages.

          There's some permissions problem on your site.

          From the browser:
          Code: [Select]
          Forbidden

          You don't have permission to access /titchy/titchy-phoneui-base.deb on this server.
          Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch7 mod_ssl/2.2.3 OpenSSL/0.9.8g Server at debian.neilandtheresa.co.uk Port 80
          Oops.  Fixed.
          Title: Htc Universal
          Post by: Sam Liddicott on May 14, 2008, 04:24:12 pm
          Quote from: Cagnulein
          Am i the only one who have problems with the duration of the battery? After 2 weeks of titchy i've obsverved that it runs for about 2 days with the full charge against the 4-5 days with WM6.

          Is it normal? i've used the phone with wifi off.

          Same problem here.
          I loose about 2% battery per hour while on standby.

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 14, 2008, 04:26:18 pm
          Quote from: Chero
          Quote from: Sam Liddicott
          The gtkdialog I have doesn't work properly on the universal, most of the button clicks handlers are not processed, but rather a critical assertion given.

          This is a shame because glade-3 (which also runs on the phone!!) was helping do some nice phone GUI.

          Sam

          I remember this problem with glade,
          Try configuring the app with

          LDFLAGS="-export-dynamic"

          it helped me out with gnocky.
          Chero.

          Good tip, thanks. Do you have any cross-building deb tips, or may I shall just re-build it on my phone (with swap over NFS over USB to save my poor SD card)

          Sam
          Title: Htc Universal
          Post by: ShiroiKuma on May 14, 2008, 04:32:23 pm
          Quote from: datathief
          Quote from: ShiroiKuma
          Yes, WM keeps the correct time. But perhaps it's as you say, since I've set the "automatically get time from network" or whatever that is...
          There's a command get the time from the modem, but it doesn't return the date.  

          It's possible that we could create some awful hack, like:
          • Write the date to a file
          • Reboot
          • Read date from file
          • Retrieve time from modem
          This would only work if you restart Linux on the same day you reboot...
          I wrote this hack. You can get the deb file from http://sumoudou.org/index.php?cmd=%E7%9B%B...tween%20reboots (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9APreserving%20date%20and%20time%20on%20the%20Universal%20between%20reboots)
          Title: Htc Universal
          Post by: datathief on May 14, 2008, 04:45:20 pm
          Quote from: datathief
          I've added titchy-phoneui-base (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-base) and titchy-phoneui-console (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-console) to the Titchy repository.

          Quote from: ShiroiKuma
          There is one problem I think with whiptail now, which might be associated with key bindings. When in X, when in a call, the hangup button on the display flap, doesn't hangup. I.e. what hangs, I've found, in X, is double ESC, while the hangup button is not mapped to it. I vaguely recall it hanging up outside X, though don't know if I'm imagining, or it indeed does that. If yes, than probably some xbindkeys or xmodmap issue.
          This is currently working for me, with the above packages.
          Actually, this wasn't working.  And with dash as the default shell, dialling out was quite broken.  I've uploaded a fixed titchy-phoneui-console now.
          Title: Htc Universal
          Post by: datathief on May 15, 2008, 05:14:13 am
          Quote from: Sam Liddicott
          Quote from: Cagnulein
          Am i the only one who have problems with the duration of the battery? After 2 weeks of titchy i've obsverved that it runs for about 2 days with the full charge against the 4-5 days with WM6.

          Is it normal? i've used the phone with wifi off.

          Same problem here.
          I loose about 2% battery per hour while on standby.

          Sam
          I'll do some testing, to try to find out what's not getting powered down properly.
          Title: Htc Universal
          Post by: Sam Liddicott on May 15, 2008, 06:40:53 am
          Quote from: datathief
          Quote from: Sam Liddicott
          Quote from: Cagnulein
          Am i the only one who have problems with the duration of the battery? After 2 weeks of titchy i've obsverved that it runs for about 2 days with the full charge against the 4-5 days with WM6.

          Is it normal? i've used the phone with wifi off.

          Same problem here.
          I loose about 2% battery per hour while on standby.

          Sam
          I'll do some testing, to try to find out what's not getting powered down properly.

          I'm guessing it's things waking up periodically.

          When I worked for Orange on smartphones htc supplied an application which records when it wakes up to each wake-up level, so we could easily see if our customization apps were stopping the phone sleep properly.

          I was thinking this morning that we may need something similar.
          Title: Htc Universal
          Post by: Sam Liddicott on May 15, 2008, 06:44:43 am
          Mono apps...

          rather than tackle re-compiling gtkdialog (I'm still more at home with rpm's than debs - and cross-debs is no joke) I tried some mono phone apps.

          Sadly, mono runtime(s) take at least 22% of phone RAM.
          gtkdialog takes up 15% of phone RAM (according to top) (with more widgets too)

          So.... I'm not too sure yet....
          Title: Htc Universal
          Post by: datathief on May 15, 2008, 08:00:38 am
          Quote from: Sam Liddicott
          I'm guessing it's things waking up periodically.

          When I worked for Orange on smartphones htc supplied an application which records when it wakes up to each wake-up level, so we could easily see if our customization apps were stopping the phone sleep properly.

          I was thinking this morning that we may need something similar.
          The different "levels" of suspend that Windows Mobile and presumably Symbian use don't really apply under Linux.  If the processor is configured to wake on a given interrupt, it wakes fully.  You can find out how often this is happening by looking at syslog:
          Code: [Select]
          grep htcuniversal_resume /var/log/syslogYou should find it only wakes on a GSM event (call or SMS), an alarm, or when you press the power button.

          I know there are problems with the wifi driver's power management  -  not least that the kernel powers up wifi by default (loading the htcuniversal-acx module powers it down again).  There may be more.

          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          Title: Htc Universal
          Post by: Sam Liddicott on May 15, 2008, 11:27:37 am
          Just for general interest;
          here's my /etc/network/interfaces entry from my desktop:

          Code: [Select]
          allow-hotplug usb0
          auto usb0
          iface usb0 inet static
                  address 192.168.2.1
                  netmask 255.255.255.0
                  post-up echo 1 > /proc/sys/net/ipv4/ip_forward; iptables -D FORWARD -j ACCEPT; iptables -A FORWARD -j ACCEPT; iptables -t nat -D POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE

          It doesn't go down when I unplug and so I have to ifdown/ifup when I re-plug or it doesn't get an address.

          Here is my interfaces from my universal:
          Code: [Select]
          allow-hotplug usb0
          iface usb0 inet static
                  address 192.168.2.2
                  netmask 255.255.255.0
                  gateway 192.168.2.1
                  post-up echo nameserver 4.2.2.2 > /etc/resolv.conf

          And I finally got a kernel compile, not sure what I was doing wrong, but now I can start on the wlan stuff.
          Title: Htc Universal
          Post by: Sam Liddicott on May 15, 2008, 11:37:33 am
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.

          Thanks for that; I'll test tonight.

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 15, 2008, 05:23:19 pm
          Quote from: Sam Liddicott
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.

          Thanks for that; I'll test tonight.

          Sam

          It seems to have done the trick, I've only lost 5% in the last 5 hours

          Sam
          Title: Htc Universal
          Post by: webdork on May 15, 2008, 07:05:18 pm
          Quote from: Sam Liddicott
          And I finally got a kernel compile, not sure what I was doing wrong, but now I can start on the wlan stuff.

          YES!!! I and many others hope you have success with this! Please keep us updated  
          Title: Htc Universal
          Post by: ShiroiKuma on May 16, 2008, 04:30:33 am
          Quote from: webdork
          Quote from: Sam Liddicott
          And I finally got a kernel compile, not sure what I was doing wrong, but now I can start on the wlan stuff.

          YES!!! I and many others hope you have success with this! Please keep us updated  
          Don't get your hopes up too high. Not diminishing the above efforts, but many people have "successfully" compiled kernels for the Uni recently, but all the time there were some side issues. The last kernel I've compiled had all the crypto modules etc. but then had severe issues with suspend and coming out of suspend.

          So maybe getting a fully working kernel, which will accomodate wifi stability and not have any negative side effects is still not gonna be that easy.
          Title: Htc Universal
          Post by: datathief on May 16, 2008, 06:01:49 am
          Quote from: ShiroiKuma
          Quote from: webdork
          Quote from: Sam Liddicott
          And I finally got a kernel compile, not sure what I was doing wrong, but now I can start on the wlan stuff.

          YES!!! I and many others hope you have success with this! Please keep us updated  
          Don't get your hopes up too high. Not diminishing the above efforts, but many people have "successfully" compiled kernels for the Uni recently, but all the time there were some side issues. The last kernel I've compiled had all the crypto modules etc. but then had severe issues with suspend and coming out of suspend.

          So maybe getting a fully working kernel, which will accomodate wifi stability and not have any negative side effects is still not gonna be that easy.
          By the same token, you did manage to build new modules and run them with the known-working kernel, didn't you?  I think there's still hope.  
          Title: Htc Universal
          Post by: webdork on May 16, 2008, 07:10:58 am
          Quote from: datathief
          I think there's still hope.  

          Where there is a will there is a way  

          Also, there are two files that are the primary reason the wlan i crap for the Uni: mem.c and cs.c. I've been told that once these files are cleaned up that the slave memory driver should be good, so it's not impossible (a new kernel wouldn't be bad either!!!!)
          Title: Htc Universal
          Post by: datathief on May 16, 2008, 02:54:44 pm
          Quote from: Sam Liddicott
          Quote from: Sam Liddicott
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.

          Thanks for that; I'll test tonight.

          Sam

          It seems to have done the trick, I've only lost 5% in the last 5 hours

          Sam
          I've accidentally removed snd-htcuniversal-audio from /etc/modules, which will cause you problems when you reboot.  I've fixed this in another new version of titchy-hardware-support.

          For anyone using the whiptail UI, I've uploaded a new version of titchy-phoneui-console.  Fixes some small issues, like turning the ringtone off before answering the call.
          Title: Htc Universal
          Post by: ShiroiKuma on May 17, 2008, 04:26:04 pm
          datathief, do you have ppp on demand setup to survive suspends? the ppp package installs a kill script to /etc/apm/event.d

          Did you remove it, or configure /etc/ppp/apm.conf? Right now I have to redial demand ppp after each resume. How do you do it?
          Title: Htc Universal
          Post by: datathief on May 17, 2008, 09:08:12 pm
          Quote from: ShiroiKuma
          datathief, do you have ppp on demand setup to survive suspends? the ppp package installs a kill script to /etc/apm/event.d

          Did you remove it, or configure /etc/ppp/apm.conf? Right now I have to redial demand ppp after each resume. How do you do it?
          I've just set /etc/ppp/apm.conf to
          Code: [Select]
          exit 0
          ... which is obviously not the "right way" to do it...
          Title: Htc Universal
          Post by: Elleo on May 18, 2008, 01:21:46 pm
          Hi, just installed titchy and really like it. One small bug I noticed however is that the sms mailbox (/var/mail/sms) is incorrectly formatted (resulting in SMS messages not being displayed terribly well in mutt). In /etc/titchy-phone-daemon/event.d/titchy-phoneui-base for the receivesms case you need to be using echo -e rather than just echo, otherwise you'll just get literal '\n's in the output instead of line breaks.
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 02:09:46 pm
          Quote from: Elleo
          Hi, just installed titchy and really like it. One small bug I noticed however is that the sms mailbox (/var/mail/sms) is incorrectly formatted (resulting in SMS messages not being displayed terribly well in mutt). In /etc/titchy-phone-daemon/event.d/titchy-phoneui-base for the receivesms case you need to be using echo -e rather than just echo, otherwise you'll just get literal '\n's in the output instead of line breaks.
          Not associated with this, but in the whiptail popup box when you get an SMS, it doesn't line break either. I have to view all of the long SMSes by tailing the SMS log file.
          Title: Htc Universal
          Post by: datathief on May 18, 2008, 05:22:14 pm
          Quote from: Elleo
          Hi, just installed titchy and really like it. One small bug I noticed however is that the sms mailbox (/var/mail/sms) is incorrectly formatted (resulting in SMS messages not being displayed terribly well in mutt). In /etc/titchy-phone-daemon/event.d/titchy-phoneui-base for the receivesms case you need to be using echo -e rather than just echo, otherwise you'll just get literal '\n's in the output instead of line breaks.
          It seems bash and dash handle this differently  -  I presume your /bin/sh is bash.  I'll see what I can do.

          Edit: Fixed  -  titchy-phoneui-base now depends specifically on dash.
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 05:23:28 pm
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          So how do I bring bluetooth up now?

          hciconfig gives me nothing, no change when insmoding the two bluetooth module files in /lib/modules
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 05:24:06 pm
          Quote from: datathief
          It seems bash and dash handle this differently  -  I presume your /bin/sh is bash.  I'll see what I can do.
          I thought I've set the default to dash, let me check...

          No, I've got it set to dash.

          EDIT 1: Something ocurred to me, and I checked, and yes, it's connected with UTF-8. It only doesn't line break with UTF-8 characters in the message. Also, some of them are still garbled, but some not, so will try to determine if it's only with some, will do some more tests.

          EDIT 2: No, it seems to be doing it with all extended characters, i.e. once UTF-8 is used, it doesn't linebreak.
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 05:24:44 pm
          Quote from: datathief
          I've just set /etc/ppp/apm.conf to
          Code: [Select]
          exit 0
          ... which is obviously not the "right way" to do it...
          But it seems to be working... Thanks a lot for that.
          Title: Htc Universal
          Post by: datathief on May 18, 2008, 05:32:02 pm
          Quote from: ShiroiKuma
          Not associated with this, but in the whiptail popup box when you get an SMS, it doesn't line break either. I have to view all of the long SMSes by tailing the SMS log file.
          I'm not sure that I understand (it works fine for me).  Any chance of a screenshot?  (I don't exactly know how one would go about getting a screenshot  )
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 05:46:50 pm
          Quote from: datathief
          Quote from: ShiroiKuma
          Not associated with this, but in the whiptail popup box when you get an SMS, it doesn't line break either. I have to view all of the long SMSes by tailing the SMS log file.
          I'm not sure that I understand (it works fine for me).  Any chance of a screenshot?  (I don't exactly know how one would go about getting a screenshot  )
          I just edited above, it works fine if the message is not in UTF-8, then it's formatted. If there's UTF-8, then there is just one line, which runs all the way to the box border, the border on the right side of this line is messed up - shifted a character to the left, and that's all that's shown. It doesn't break the line.
          Title: Htc Universal
          Post by: datathief on May 18, 2008, 06:29:35 pm
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          So how do I bring bluetooth up now?

          hciconfig gives me nothing, no change when insmoding the two bluetooth module files in /lib/modules
          This should power it up again:
          Code: [Select]
          devmem2 0x10000104 halfword 0xC6A0... and down with:
          Code: [Select]
          devmem2 0x10000104 halfword 0x86A0
          Edit: There's a bug in devmem2 when writing single bytes.  Changed to write halfwords.
          Title: Htc Universal
          Post by: datathief on May 18, 2008, 06:30:53 pm
          Quote from: ShiroiKuma
          Quote from: datathief
          Quote from: ShiroiKuma
          Not associated with this, but in the whiptail popup box when you get an SMS, it doesn't line break either. I have to view all of the long SMSes by tailing the SMS log file.
          I'm not sure that I understand (it works fine for me).  Any chance of a screenshot?  (I don't exactly know how one would go about getting a screenshot  )
          I just edited above, it works fine if the message is not in UTF-8, then it's formatted. If there's UTF-8, then there is just one line, which runs all the way to the box border, the border on the right side of this line is messed up - shifted a character to the left, and that's all that's shown. It doesn't break the line.
          I can't find much documentation on getting whiptail to work properly with UTF8...
          Title: Htc Universal
          Post by: ShiroiKuma on May 18, 2008, 06:36:31 pm
          Quote from: datathief
          I can't find much documentation on getting whiptail to work properly with UTF8...
          Well, it's no big deal. I'm fine with just being notified the SMS is there and then I tail it...
          Title: Htc Universal
          Post by: ArchiMark on May 18, 2008, 11:54:09 pm
          Knock on wood, things are working pretty well for me right now with Titchy/HTC Uni....

          However, just a couple minor things I've noticed....

          During boot-up, I see in console the following:
          Code: [Select]
          activating swap [20.550000] unable to find swap-space signature
          [color="#FF0000"]failed.[/color]
          fsck.....

          then  Uni rebooted on its own...when it restarts it come back up in WM of course, but I find that it gets 'stuck' on the 'Owner Info' screen, such that it doesn't respond to screen taps and thus I need to do a reset..the next time it comes back up, I can get to the haret file and start up Titchy...

          Hmm...maybe I spoke too soon....

          Meanwhile, a few minutes ago, I was in the middle of doing an 'apt-get install...' and all of a sudden screen went dark and Uni went into suspend...clicked power button to wake it up and I saw console for a few seconds then the ts_calibration screen came on by itself....after a short time, it disappeared by itself  (before I could get to it and calibrate display) and then I saw the 'X' startup window and now I'm back at the xdm login screen....

          I logged in and then I saw the those 'ts_calibrate' registration marks faintly in the X background.... I clicked on one and then the iceWM window disappeared and now I'm back in the login console....although I can see a bit of the IceWm taskbar on the right where the time is shown...very odd....

          Now, I just clicked somewhere else on the taskbar and the terminal window popped back on the display...but there's just a black background behind it...

          So, decided to reboot, now I see some strange sights on the display, first a yellowish/white coloration on the display which now gone and now there's a sort of random series of horizontal dark grey and white bands of varying widths on the display....

          OK, just did a reset again....and restarted haret and now back to xdm login again.....

           
          Title: Htc Universal
          Post by: datathief on May 19, 2008, 03:46:39 am
          Quote from: ArchiMark
          Knock on wood, things are working pretty well for me right now with Titchy/HTC Uni....

          However, just a couple minor things I've noticed....

          During boot-up, I see in console the following:
          Code: [Select]
          activating swap [20.550000] unable to find swap-space signature
          [color="#FF0000"]failed.[/color]
          fsck.....
          This, along with the other symptoms, makes it sound like corrupted swap space.  Are you using a swap partition on the SD card?  (What is the "swap" line in /etc/fstab?)
          Title: Htc Universal
          Post by: ArchiMark on May 19, 2008, 09:36:17 am
          Quote from: ArchiMark
          Knock on wood, things are working pretty well for me right now with Titchy/HTC Uni....

          However, just a couple minor things I've noticed....

          During boot-up, I see in console the following:
          Code: [Select]
          activating swap [20.550000] unable to find swap-space signature
          [color="#FF0000"]failed.[/color]
          fsck.....

          Quote from: datathief
          This, along with the other symptoms, makes it sound like corrupted swap space.  Are you using a swap partition on the SD card?  (What is the "swap" line in /etc/fstab?)

          Here's that line:
          Code: [Select]
          /dev/mmcblk0p3    swap       swap     pri=1       0    0

          UPDATE:
          Other weirdness now.....

          Having the 'wild cursor' and 'non-responsive cursor' problems in IceWM....

          Have tried to do 'ts_calibrate' but terminal says 'command not found'....

          Got out of IceWM and back into console...

          Now notice other strangeness....

          I have 2 'ts.conf' files....one in '/etc/ and the other in '/opt/kdrive/', which one do I want to use?

          Meanwhile, checked both files and then did 'ts_calibrate' and get message 'segmentation fault'

          Any suggestions as to how to clean up this mess?


          Thanks!
          Title: Htc Universal
          Post by: ShiroiKuma on May 19, 2008, 01:05:31 pm
          Quote from: ArchiMark
          Having the 'wild cursor' and 'non-responsive cursor' problems in IceWM....

          Have tried to do 'ts_calibrate' but terminal says 'command not found'....

          Got out of IceWM and back into console...

          Now notice other strangeness....

          I have 2 'ts.conf' files....one in '/etc/ and the other in '/opt/kdrive/', which one do I want to use?

          Meanwhile, checked both files and then did 'ts_calibrate' and get message 'segmentation fault'

          Any suggestions as to how to clean up this mess?

          Thanks!
          Your card is failing man. Forget about "cleaning up this mess". Mount it on a PC, backup your documents, and user settings if you still can.

          Then throw it in the garbage, buy a new one, and reinstall debian.

          That's the reason why with swap on SD you need to do the installed rootfs backups. I do them now twice a week with rdiff-backup, so in case of failure it's easy to reinstall, without starting from scratch.
          Title: Htc Universal
          Post by: datathief on May 19, 2008, 03:27:29 pm
          Quote from: ShiroiKuma
          Your card is failing man. Forget about "cleaning up this mess". Mount it on a PC, backup your documents, and user settings if you still can.

          Then throw it in the garbage, buy a new one, and reinstall debian.
          This seems like a serious problem.  I don't use swap  -  partly because of the "swap will kill flash drives" rumours.  Could this perhaps be helped by setting /proc/sys/vm/swappiness to 0?
          Title: Htc Universal
          Post by: ArchiMark on May 19, 2008, 03:54:58 pm
          Quote from: ArchiMark
          Having the 'wild cursor' and 'non-responsive cursor' problems in IceWM....

          Have tried to do 'ts_calibrate' but terminal says 'command not found'....

          Got out of IceWM and back into console...

          Now notice other strangeness....

          I have 2 'ts.conf' files....one in '/etc/ and the other in '/opt/kdrive/', which one do I want to use?

          Meanwhile, checked both files and then did 'ts_calibrate' and get message 'segmentation fault'

          Any suggestions as to how to clean up this mess?

          Thanks!

          Quote from: ShiroiKuma
          Your card is failing man. Forget about "cleaning up this mess". Mount it on a PC, backup your documents, and user settings if you still can.

          Then throw it in the garbage, buy a new one, and reinstall debian.

          That's the reason why with swap on SD you need to do the installed rootfs backups. I do them now twice a week with rdiff-backup, so in case of failure it's easy to reinstall, without starting from scratch.


          Thanks for the 'good news', ShiroiKuma.....  

          The card you're suggesting I throw away is the 16GB A-DATA SD card that I bought about a month ago.....  

          Think I should reformat card back to one vfat partition and return it to store I got it from????

           
          Title: Htc Universal
          Post by: ShiroiKuma on May 19, 2008, 04:27:49 pm
          Quote from: ArchiMark
          The card you're suggesting I throw away is the 16GB A-DATA SD card that I bought about a month ago.....  

          Think I should reformat card back to one vfat partition and return it to store I got it from????

           
          Hahahah... You should've said so. The 16GB A-Data cards are trash. I've gone through four in the past two weeks, all of them failed after one or two days. And that was not because of swap, it was just when copying massive amount of data to them. They are trash...

          I've had no other card fail.

          Now I've had a Kingston 16GB card for more than a couple of weeks, no probs...

          BTW, I think, based on my experiences so far, that really, if you have a swap partition, it'll not kill the whole card and your data ain't gonna get corrupted. If you use just a swap file, it's gonna cause problems.

          But a swap partition on a good SD seems to be no prob at all. But still, backups are in order.

          Nevertheless, go throw it in the garbage and get a good one...  
          Title: Htc Universal
          Post by: ShiroiKuma on May 19, 2008, 05:45:24 pm
          Quote from: datathief
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          So how do I bring bluetooth up now?

          hciconfig gives me nothing, no change when insmoding the two bluetooth module files in /lib/modules
          This should power it up again:
          Code: [Select]
          devmem2 0x10000104 halfword 0xC6A0
          Doesn't seem to work. hciconfig still gives me nothing.
          Title: Htc Universal
          Post by: ArchiMark on May 19, 2008, 05:58:22 pm
          Quote from: ShiroiKuma
          Quote from: ArchiMark
          The card you're suggesting I throw away is the 16GB A-DATA SD card that I bought about a month ago.....  

          Think I should reformat card back to one vfat partition and return it to store I got it from????

           
          Hahahah... You should've said so. The 16GB A-Data cards are trash. I've gone through four in the past two weeks, all of them failed after one or two days. And that was not because of swap, it was just when copying massive amount of data to them. They are trash...

          I've had no other card fail.

          Now I've had a Kingston 16GB card for more than a couple of weeks, no probs...

          BTW, I think, based on my experiences so far, that really, if you have a swap partition, it'll not kill the whole card and your data ain't gonna get corrupted. If you use just a swap file, it's gonna cause problems.

          But a swap partition on a good SD seems to be no prob at all. But still, backups are in order.

          Nevertheless, go throw it in the garbage and get a good one...  


          Thanks again for the input....

          Meanwhile, for fun, I deleted partitions on A-DATA SD card and created one new FAT partition and made a vfat filesystem on it, then mounted it on my Zaurus, appears to be OK....

          So, wonder if card has really failed or not???

          Thanks.
          Title: Htc Universal
          Post by: ShiroiKuma on May 19, 2008, 06:20:45 pm
          Quote from: ArchiMark
          Meanwhile, for fun, I deleted partitions on A-DATA SD card and created one new FAT partition and made a vfat filesystem on it, then mounted it on my Zaurus, appears to be OK....

          So, wonder if card has really failed or not???

          Thanks.
          Well, I couldn't believe it that it'd develop problems just copying data etc. consistently, thought it was a bad specimen, but have since then determined, that these cards are really very bad. Low price - low quality.
          Title: Htc Universal
          Post by: ShiroiKuma on May 19, 2008, 06:42:52 pm
          Quote from: ShiroiKuma
          Quote from: datathief
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          So how do I bring bluetooth up now?

          hciconfig gives me nothing, no change when insmoding the two bluetooth module files in /lib/modules
          This should power it up again:
          Code: [Select]
          devmem2 0x10000104 halfword 0xC6A0
          Doesn't seem to work. hciconfig still gives me nothing.
          I've tried many ways now, even rebooted, can't get it up. hconfig empty, ifconfig hci0 up - hci0: ERROR while getting interface flags: No such device, what's wrong?
          Title: Htc Universal
          Post by: Sam Liddicott on May 20, 2008, 03:58:06 am
          I've noticed twice now that if I send a text to a non-usb'd suspended universal and do not acknowledge the text, that the battery depletion rate increases.

          Test:

          fully charge phone., apm shows 99%
          suspend for 10 hours
          apm shows battery about 90%

          fully charge phone
          suspend
          send text (don't acknowledge)
          wait for screen to go black
          wait 10 hours
          apm shows battery about 81%

          I also get
          1. backlight button mostly doesn't work after resume
          2. sometimes mouse pointer doesn't work after resume
          3. sometimes device crashes on reboot
          4. sometimes after reboot to wm6.1 (ranju's latest rom) mouse pointer or keyboard don't work until reset.

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 20, 2008, 04:00:08 am
          I also find that the keyboard is not sensitive enough, I generally don't seem to hold the key down for long enough to register, I guess I need to reduce the debounce settings.

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 20, 2008, 04:24:56 am
          128MB upgrade

          I'm just picking who to do my 128MB upgrade, does anybody here have the upgrade knows someone who can make a recommendation?
          (I'm based in the UK)

          Sam
          Title: Htc Universal
          Post by: datathief on May 20, 2008, 05:48:09 am
          Quote from: Sam Liddicott
          I've noticed twice now that if I send a text to a non-usb'd suspended universal and do not acknowledge the text, that the battery depletion rate increases.

          Test:

          fully charge phone., apm shows 99%
          suspend for 10 hours
          apm shows battery about 90%

          fully charge phone
          suspend
          send text (don't acknowledge)
          wait for screen to go black
          wait 10 hours
          apm shows battery about 81%

          I also get
          1. backlight button mostly doesn't work after resume
          2. sometimes mouse pointer doesn't work after resume
          3. sometimes device crashes on reboot
          4. sometimes after reboot to wm6.1 (ranju's latest rom) mouse pointer or keyboard don't work until reset.

          Sam
          Do you get messages in syslog like 'Proxy exited with status 1'?  That would mean some apmd scripts are not being run, which would cause some of those symptoms.

          If so, try running:
          Code: [Select]
          /etc/apm/apmd-proxy resume suspend and see if you get any error messages that might indicate which apm script is failing.  If one script fails, the rest don't get run at all (which is a bug in apmd in my opinion).
          Title: Htc Universal
          Post by: ShiroiKuma on May 20, 2008, 05:55:46 am
          Quote from: Sam Liddicott
          3. sometimes device crashes on reboot
          4. sometimes after reboot to wm6.1 (ranju's latest rom) mouse pointer or keyboard don't work until reset.
          Don't use reset. It always messes up. When you want to reset to Windows, use halt, then soft reset with the stylus.
          Title: Htc Universal
          Post by: datathief on May 20, 2008, 05:57:03 am
          Quote from: ShiroiKuma
          Quote from: ShiroiKuma
          Quote from: datathief
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: It looks like the bluetooth module is powered up by default.  I've updated titchy-hardware-support to turn it off.  I've no idea whether it will make much difference, though.
          So how do I bring bluetooth up now?

          hciconfig gives me nothing, no change when insmoding the two bluetooth module files in /lib/modules
          This should power it up again:
          Code: [Select]
          devmem2 0x10000104 halfword 0xC6A0
          Doesn't seem to work. hciconfig still gives me nothing.
          I've tried many ways now, even rebooted, can't get it up. hconfig empty, ifconfig hci0 up - hci0: ERROR while getting interface flags: No such device, what's wrong?
          There's a bluetooth reset line (I'm getting my information from http://wiki.xda-developers.com/index.php?p...=UniversalASIC3 (http://wiki.xda-developers.com/index.php?pagename=UniversalASIC3) if you're wondering).  Try:
          Code: [Select]
          devmem2 0x10000104 halfword 0xC620 # bt power on, reset low
          devmem2 0x10000104 halfword 0xC6A0 # bt power on, reset high

          Edit: You don't need to do the above

          Code: [Select]
          echo ttyS1 swave >/etc/bluetooth/uart
          /etc/init.d/bluetooth restart
          Title: Htc Universal
          Post by: datathief on May 20, 2008, 01:39:38 pm
          (Whilst trying to get bluetooth to work, I rebooted.  Out of curiosity I've just checked my syslog, and as far as I can tell, the last time I rebooted was May 7.  With the amount of surfing, e-mailing, chatting and SSHing I do, I'm shocked.  I think it's the most reliable and most useful phone i've ever owned.  Still feel a bit silly talking into it, though.   )
          Title: Htc Universal
          Post by: ShiroiKuma on May 20, 2008, 02:40:36 pm
          Quote from: datathief
          Edit: You don't need to do the above
          Code: [Select]
          echo ttyS1 swave >/etc/bluetooth/uart
          /etc/init.d/bluetooth restart
          This doesn't seem to be working for me, after restarting bluetooth I get:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# /etc/init.d/bluetooth restart
          Restarting bluetooth: hcid.[/div]
          then hciconfig still gives empty output.
          Title: Htc Universal
          Post by: datathief on May 20, 2008, 04:45:46 pm
          Quote from: ShiroiKuma
          Quote from: datathief
          Edit: You don't need to do the above
          Code: [Select]
          echo ttyS1 swave >/etc/bluetooth/uart
          /etc/init.d/bluetooth restart
          This doesn't seem to be working for me, after restarting bluetooth I get:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# /etc/init.d/bluetooth restart
          Restarting bluetooth: hcid.[/div]
          then hciconfig still gives empty output.
          Does the following do anything?
          Code: [Select]
          hciattach /dev/ttyS1 swaveDoes the blue LED start flashing?
          Title: Htc Universal
          Post by: ShiroiKuma on May 21, 2008, 01:43:47 am
          The hciattach worked, the bluetooth device is up now and the led flashing, I'll experiment with it now. You said the above devmems are unnecessary. What's the best way to bring it down now, battery-wise?
          Title: Htc Universal
          Post by: datathief on May 21, 2008, 04:14:33 am
          Quote from: ShiroiKuma
          What's the best way to bring it down now, battery-wise?
          The driver seems to power it down properly.  Just use:
          Code: [Select]
          /etc/init.d/bluetooth stopOr if all else fails, kill the 'hciattach' process.
          Title: Htc Universal
          Post by: Sam Liddicott on May 22, 2008, 02:43:44 am
          Quote from: datathief
          Quote from: Sam Liddicott
          I've noticed twice now that if I send a text to a non-usb'd suspended universal and do not acknowledge the text, that the battery depletion rate increases.

          Test:

          fully charge phone., apm shows 99%
          suspend for 10 hours
          apm shows battery about 90%

          fully charge phone
          suspend
          send text (don't acknowledge)
          wait for screen to go black
          wait 10 hours
          apm shows battery about 81%

          I also get
          1. backlight button mostly doesn't work after resume
          2. sometimes mouse pointer doesn't work after resume
          3. sometimes device crashes on reboot
          4. sometimes after reboot to wm6.1 (ranju's latest rom) mouse pointer or keyboard don't work until reset.

          Sam
          Do you get messages in syslog like 'Proxy exited with status 1'?  That would mean some apmd scripts are not being run, which would cause some of those symptoms.

          If so, try running:
          Code: [Select]
          /etc/apm/apmd-proxy resume suspend and see if you get any error messages that might indicate which apm script is failing.  If one script fails, the rest don't get run at all (which is a bug in apmd in my opinion).

          It seems like it is nothing to do with sms or autosuspend, I'm just back to losing 2% an hour again instead of 1% an hour which I was getting after you fixed the bluetooth suspend.

          Sam
          Title: Htc Universal
          Post by: datathief on May 22, 2008, 04:52:07 am
          Quote from: Sam Liddicott
          It seems like it is nothing to do with sms or autosuspend, I'm just back to losing 2% an hour again instead of 1% an hour which I was getting after you fixed the bluetooth suspend.

          Sam
          It's difficult for me to test battery life  -  my phone is in use most of the day, and on charge overnight.  I'll try to find an opportunity.

          In the meantime:
          • Do you get good battery life on your first suspend after a reboot, and bad battery life on every subsequent suspend?  If so, the kernel must be doing something upon resume.
          • When you're getting bad battery life, run:
            Code: [Select]
            devmem2 0x10000105 byteIf the result (the last number on the last line of output) is 0x86, bluetooth is powered down.  If the result is 0xC6, it's not, and that could be the culprit.
          • Do you have the htcuniversal_acx and/or acx modules loaded?
          Title: Htc Universal
          Post by: Sam Liddicott on May 22, 2008, 11:05:49 am
          Quote from: datathief
          Quote from: Sam Liddicott
          It seems like it is nothing to do with sms or autosuspend, I'm just back to losing 2% an hour again instead of 1% an hour which I was getting after you fixed the bluetooth suspend.

          Sam
          It's difficult for me to test battery life  -  my phone is in use most of the day, and on charge overnight.  I'll try to find an opportunity.

          In the meantime:
          • Do you get good battery life on your first suspend after a reboot, and bad battery life on every subsequent suspend?  If so, the kernel must be doing something upon resume.
          • When you're getting bad battery life, run:
            Code: [Select]
            devmem2 0x10000105 byteIf the result (the last number on the last line of output) is 0x86, bluetooth is powered down.  If the result is 0xC6, it's not, and that could be the culprit.
          • Do you have the htcuniversal_acx and/or acx modules loaded?

          bluetooth is off according to that and no acx modules are loaded.

          I'll do more experiments tonight, and still losing 2% per hour.

          Sam
          Title: Htc Universal
          Post by: datathief on May 22, 2008, 03:47:38 pm
          Quote from: Sam Liddicott
          I'll do more experiments tonight, and still losing 2% per hour.

          Sam
          I've rebooted and tested the battery for a few hours, and haven't found anything that makes any significant difference (except 'modprobe acx', which does terrible, terrible things to the battery life).

          I'm currently losing almost exactly 0.5% per hour on standby, with the 3800mAh battery.  I guess that would equate to about 1.2% per hour with the standard 1620mAh battery.  I'll re-test after a day of use, and see if anything has changed.
          Title: Htc Universal
          Post by: webdork on May 22, 2008, 10:17:23 pm
          Is it possible to run a usb wifi card via an externally powered USB hub with the Universal?
          Title: Htc Universal
          Post by: datathief on May 23, 2008, 04:50:16 am
          Quote from: webdork
          Is it possible to run a usb wifi card via an externally powered USB hub with the Universal?
          I believe it's not supported by the hardware (an unconnected pin or something).  And even if it was supported, the g_ether driver (which does networking over a USB cable) can't be unloaded to load the USB host drivers, as it's not a module.  And no-one here has managed to build a fully working kernel from the source yet.

          In other words, no.  
          Title: Htc Universal
          Post by: ShiroiKuma on May 23, 2008, 06:44:22 am
          datathief, regarding APM. Does the Uni turn suspend when a critically low battery level is experienced? I can't check now, since I just ran out of battery juice, so plugged a PC cable in, and unwitfully didn't wait a couple of minutes to test if it'd come back on, just soft-reset it. So am leaving it in Windows Mobile for a while now to charge a little, as the PC cable gives low charge...

          Or is the low-bat suspend not taken care of currently?
          Title: Htc Universal
          Post by: datathief on May 23, 2008, 09:08:20 am
          Quote from: ShiroiKuma
          datathief, regarding APM. Does the Uni turn suspend when a critically low battery level is experienced? I can't check now, since I just ran out of battery juice, so plugged a PC cable in, and unwitfully didn't wait a couple of minutes to test if it'd come back on, just soft-reset it. So am leaving it in Windows Mobile for a while now to charge a little, as the PC cable gives low charge...

          Or is the low-bat suspend not taken care of currently?
          I honestly don't know.  I haven't written anything to do that, but I don't know if the kernel handles it somehow (like the Zaurus kernel does, IIRC).
          Title: Htc Universal
          Post by: ShiroiKuma on May 24, 2008, 04:18:49 pm
          Using bluetooth headpones via A2DP
          Anyone using bluetooth to listen to songs or movies on the Uni? I've googled and tried various guides like http://gentoo-wiki.com/HOWTO_use_a_bluetooth_headset (http://gentoo-wiki.com/HOWTO_use_a_bluetooth_headset) and http://wiki.debian.org/BluetoothAlsa (http://wiki.debian.org/BluetoothAlsa) etc. but I can't get it working.

          Does anyone have a working setup?

          Got it going using http://fosswire.com/2008/01/11/a2dp-stereo-linux/ (http://fosswire.com/2008/01/11/a2dp-stereo-linux/)

          However, the audio is really choppy and lags, I've noticed in syslog that hcid sets the bitpool at 32 which would be too low, so probably some tweaking needed. But at least a working start.

          If anyone has it working, please share.
          Title: Htc Universal
          Post by: datathief on May 24, 2008, 06:15:37 pm
          Quote from: ShiroiKuma
          If anyone has it working, please share.
          I don't know if this will make any difference...  I've found out that the bluetooth chipset is made by Texas Instruments, so the appropriate hciattach command is actually:
          Code: [Select]
          hciattach /dev/ttyS1 texas
          Title: Htc Universal
          Post by: datathief on May 26, 2008, 12:51:04 pm
          I've uploaded a new UI package, titchy-phoneui-shiny (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Packages/titchy-phoneui-shiny).  It's still at the prototype stage  -  it can only do basic call and SMS notifications so far, and there's no touchscreen or portrait-mode support yet  -  but I think there's a lot of potential to develop it further.

          It works nicely in console mode  -  I haven't tested it under X yet...

          Edit: Seems to work fine under X.
          Title: Htc Universal
          Post by: ShiroiKuma on May 26, 2008, 01:38:21 pm
          I'll check it out soon, prelim questions before I get to it, what's the relationship to your whiptail frontend, is it on top of that, does it supersede it or replace it, or work alongside?
          Title: Htc Universal
          Post by: datathief on May 26, 2008, 02:13:18 pm
          Quote from: ShiroiKuma
          I'll check it out soon, prelim questions before I get to it, what's the relationship to your whiptail frontend, is it on top of that, does it supersede it or replace it, or work alongside?
          They should coexist fine.  It's not anywhere near a finished product yet, so it won't replace the whiptail scripts.  Keep your expectations low.  

          Screenshots are up on the wiki now.  Also, I've just uploaded a new version to fix a bug (new SMS would cause it to crash).
          Title: Htc Universal
          Post by: ShiroiKuma on May 26, 2008, 04:34:00 pm
          It seems UTF-8 is not implemented in it. I've replaced the Vera.ttf link to an extended TTF font, containing Japanese characters, however they are not displayed properly, though the font contains them, so a coding issue maybe?
          Title: Htc Universal
          Post by: datathief on May 26, 2008, 07:42:34 pm
          Quote from: ShiroiKuma
          It seems UTF-8 is not implemented in it. I've replaced the Vera.ttf link to an extended TTF font, containing Japanese characters, however they are not displayed properly, though the font contains them, so a coding issue maybe?
          Should be fixed now (you'll still need to replace the font though).
          Title: Htc Universal
          Post by: webdork on May 27, 2008, 03:41:20 am
          Where can I find the kernel headers for Shiro's Debian Sid FS? (hh20)  I'm trying to build the mac80211 subsystem for the Uni and need to find them!

          Thanx in advance!
          Title: Htc Universal
          Post by: ShiroiKuma on May 27, 2008, 03:47:54 am
          Quote from: datathief
          I don't know if this will make any difference...  I've found out that the bluetooth chipset is made by Texas Instruments, so the appropriate hciattach command is actually:
          Code: [Select]
          hciattach /dev/ttyS1 texas
          Oh no, it's a nightmare...

          The lag is not caused by swave vs texas, as I've tried on a desktop and once bluetooth audio was setup using the same python script, it had the same lag when playing from mplayer, while totem has none, apparently there is super high cpu usage using mplayer and a2dp, so some bug...

          However, not keeping in line with the "if it's not messed up, don't fix it" golden rule, I aptiture removed bluetooth-alsa, as it shouldn't be needed and should be antiquated, rebooted. Now the bluetooth does start up, but the audio will not run.

          Now, no matter which combo I try with having the bluetooth-alsa installed etc. it doesn't work, I've noticed:
          Can't load plugin: /lib/bluetooth/plugins/libaudio.so in the syslog, the indicated solution to this on the web is recompile bluez-utils.

          But it was working, before "I fixed it" so how can this be?

          Ahhh....

          EDIT 1: Hmmm, some progress, have replaced texas back with swave in /etc/bluetooth/uart, after restart, after stopping bluetooth-alsa, and starting bluetooth, this is fine and audio is initialized... Now just can't get passkey-agent to register the pin to the headphones, which went fine yesterday... Some further twiddlin' probably necessary.
          Title: Htc Universal
          Post by: ShiroiKuma on May 27, 2008, 03:53:03 am
          Quote from: webdork
          Where can I find the kernel headers for Shiro's Debian Sid FS? (hh20)  I'm trying to build the mac80211 subsystem for the Uni and need to find them!
          https://www.oesf.org/forum/index.php?showto...st&p=176793 (https://www.oesf.org/forum/index.php?showtopic=25666&view=findpost&p=176793)
          Title: Htc Universal
          Post by: ShiroiKuma on May 27, 2008, 03:59:05 am
          Quote from: datathief
          Should be fixed now (you'll still need to replace the font though).
          It works, displays fine now.

          It seems, however, that the mute via loudness button while a call is ringing is not working with it.

          EDIT 1: My bad, I guess it's working, let me test again...
          Title: Htc Universal
          Post by: ShiroiKuma on May 28, 2008, 09:16:42 am
          Your titchy-phoneui-shiny in the current update is really an elegant interface, very nice and impressive.

          There is a nasty bug in the scripts, which just inflicted me, so will describe the situation how it happened to me.

          I was making a test call to the Uni from another phone, right around the time when I accepted it by pressing the accept button, don't know if it was a fraction of a second before accept or after, I received an unexpected SMS. This resulted in the phone vibrating, without stopping. I could hit the OK button to dismiss the SMS info, but then the Accept Call? info screen was on top and couldn't be dismissed, the vibration couldn't be killed, I couldn't switch into any other VT, and couldn't kill it with Ctrl-C, had to reboot.
          Title: Htc Universal
          Post by: datathief on May 28, 2008, 09:25:55 am
          Quote from: ShiroiKuma
          Quote from: datathief
          Should be fixed now (you'll still need to replace the font though).
          It works, displays fine now.

          It seems, however, that the mute via loudness button while a call is ringing is not working with it.

          EDIT 1: My bad, I guess it's working, let me test again...
          This is due to some sort of bug in titchy-button-daemon, where the front panel buttons (backlight, volume, etc.) sometimes stop working after resume.  I think I've fixed it (it works for me) in the newest version.
          Title: Htc Universal
          Post by: datathief on May 28, 2008, 09:31:14 am
          Quote from: ShiroiKuma
          Your titchy-phoneui-shiny in the current update is really an elegant interface, very nice and impressive.

          There is a nasty bug in the scripts, which just inflicted me, so will describe the situation how it happened to me.

          I was making a test call to the Uni from another phone, right around the time when I accepted it by pressing the accept button, don't know if it was a fraction of a second before accept or after, I received an unexpected SMS. This resulted in the phone vibrating, without stopping. I could hit the OK button to dismiss the SMS info, but then the Accept Call? info screen was on top and couldn't be dismissed, the vibration couldn't be killed, I couldn't switch into any other VT, and couldn't kill it with Ctrl-C, had to reboot.
          I'm not sure how this could happen.  I'll look into it.

          I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
          Title: Htc Universal
          Post by: hakkinen on May 29, 2008, 01:39:41 pm
          How can I install Debian on my Uni without a Linux PC??? Anyone can tell me??? I created 3 partitions on my SD card: 1st FAT, 2nd Ext2 and 3rd Swamp space. I unpacked the tar file (Debian) to the 2nd partition by using RAMDISK.cab on my Uni (I saw 4 file in directory dev/mmc/blk0: part1, part2, part5, part6, and I mounted vfat with part1, ext2 with part5). But when I used haret.exe, it warned Failed to load file \zImage. How can I boot in Linux??? I have to edit default.txt and zImage.txt???
          Thanks in advance!!!
          Title: Htc Universal
          Post by: datathief on May 29, 2008, 02:38:55 pm
          Quote from: hakkinen
          How can I install Debian on my Uni without a Linux PC??? Anyone can tell me??? I created 3 partitions on my SD card: 1st FAT, 2nd Ext2 and 3rd Swamp space. I unpacked the tar file (Debian) to the 2nd partition by using RAMDISK.cab on my Uni (I saw 4 file in directory dev/mmc/blk0: part1, part2, part5, part6, and I mounted vfat with part1, ext2 with part5). But when I used haret.exe, it warned Failed to load file \zImage. How can I boot in Linux??? I have to edit default.txt and zImage.txt???
          Thanks in advance!!!
          The file called zImage is the Linux kernel.  If yours is named zImage.txt and you can't rename it to zImage, then try editing default.txt  -  change the first line to:
          Code: [Select]
          set kernel "zImage.txt"
          Title: Htc Universal
          Post by: hakkinen on May 29, 2008, 03:12:20 pm
          Thanks very much. Now I can boot in Linux, but it warned Cannot open root device "mmc/blk0/part5" or unknown-block(0,0)...
          Please append a correct "root=" boot option... Unable to mount root fs on unknown-block(0,0). How can I boot in Linux? I mounted ext2 with part5 and unpacked the tar file here
          Title: Htc Universal
          Post by: datathief on May 29, 2008, 04:09:23 pm
          Quote from: hakkinen
          Thanks very much. Now I can boot in Linux, but it warned Cannot open root device "mmc/blk0/part5" or unknown-block(0,0)...
          Please append a correct "root=" boot option... Unable to mount root fs on unknown-block(0,0). How can I boot in Linux? I mounted ext2 with part5 and unpacked the tar file here
          This is probably due to the kernel using a different naming convention for the device  -  /dev/mmcblk0p* instead of /dev/mmc/blk0/part*.  Try changing the "root=..." option in default.txt to root=/dev/mmcblk0p5
          Title: Htc Universal
          Post by: Tom_A on May 30, 2008, 05:36:47 am
          Quote from: datathief
          I've been using an HTC Universal (http://en.wikipedia.org/wiki/HTC_Universal) for a month now, and I've all but forgotten about my poor Zaurus.  


          Wow, I _love_ it. I think a distro for the Universal would be great. I just need to get WLAN working ( with WPA ) to be able to use it. But installing was really easy. Very well done. Could you point me in the direction of some howtos on how to get the UI, the phoneUI and WLAN working?

          Thanks a lot!
          Title: Htc Universal
          Post by: aku-aku on May 30, 2008, 07:00:46 am
          Quote from: Tom_A
          Wow, I _love_ it. I think a distro for the Universal would be great. I just need to get WLAN working ( with WPA ) to be able to use it. But installing was really easy. Very well done. Could you point me in the direction of some howtos on how to get the UI, the phoneUI and WLAN working?

          I've just started using Titchy Mobile too.  There are some packages listed on the Titchy Mobile homepage that aren't installed by default.  These can be installed by running "apt-get install package-name" (having first set up the USB network per the instructions on the Titchy Mobile homepage).

          To get WPA working, you'll need to apt-get install wpasupplicant, then follow one of the many howtos (I used this one as a rough guide, though it's not targeted at Debian (http://www.neowin.net/forum/lofiversion/index.php/t399787.html)).  I've got problems with mine at the moment, which look like they're due to the fact that I hide my SSID - it seems the scan setting in the config file may need to be commented out or removed.  You'll also find (I think) that you need to set -Dmadwifi rather than -Dndiswrapper in the wpa_supplicant command line.

          I was testing out my wpa_supplicant config by running "wpa_supplicant -dd -Dmadwifi -iwlan0 -c/etc/wpa_supplicant.conf" - that'll spew debug to the console and allow you to see what's going on.

          If you get your WPA connection working before I fix mine, do let me know how!
          Title: Htc Universal
          Post by: hakkinen on May 30, 2008, 11:45:30 am
          ShiroiKuma, your image needs about 800Mb of space on my SD card (not 600Mb). Thanks for your work. Can u tell me again how to make USB port work with my Windows PC??? I read introduction but can't make USB work
          Title: Htc Universal
          Post by: ShiroiKuma on May 30, 2008, 04:44:21 pm
          Quote from: hakkinen
          ShiroiKuma, your image needs about 800Mb of space on my SD card (not 600Mb). Thanks for your work. Can u tell me again how to make USB port work with my Windows PC??? I read introduction but can't make USB work
          http://wiki.neilandtheresa.co.uk/Titchy_Mo.../Networking/USB (http://wiki.neilandtheresa.co.uk/Titchy_Mobile/Tips/Networking/USB)

          Don't know if this works, man. I don't use Windows.
          Title: Htc Universal
          Post by: Sam Liddicott on May 31, 2008, 01:08:10 pm
          I just upgraded packages on my universal, install titchy-phoneui-shiny and apt-get autoremove
          and now I've lost my X server

          mojo:~# /etc/X11/xinit/xserverrc: line 5: /usr/bin/X11/X: No such file or directory
          /etc/X11/xinit/xserverrc: line 5: exec: /usr/bin/X11/X: cannot execute: No such file or directory
          xinit:  Server error.

          Sumuo, I was using your image, which package provided the Xserver?

          EDIT:
          Never mind;

          # ln -s /etc/X11/X /usr/bin/X11/X

          fixed it
          Title: Htc Universal
          Post by: Sam Liddicott on May 31, 2008, 01:28:46 pm
          How do I make phoneui shiny go away?

          I can't make the missed-call screen go away.
          even "chvt" from an SSH session doesn't return:
          strace tail:

          open("/dev/tty0", O_RDWR)               = 3
          ioctl(3, KDGKBTYPE, 0xbef24c4f)         = 0
          ioctl(3, VIDIOC_G_COMP or VT_ACTIVATE, 0x1) = 0
          ioctl(3, VIDIOC_S_COMP or VT_WAITACTIVE
          Title: Htc Universal
          Post by: hakkinen on June 01, 2008, 02:23:52 pm
          My USB port works ok now. But after 10 minutes, it disconnects automatically so I can't connect to Internet anymore. I had to unplug USB and plug in again, it worked. How can I solve this problem?
          Title: Htc Universal
          Post by: ShiroiKuma on June 02, 2008, 06:03:51 am
          Quote from: ShiroiKuma
          Quote from: ShiroiKuma
          So I'm experimenting with it, it seems sound is the biggest problem. I can play 640x480 movies without sound smooth with no glitches. So have been trying different settings for mencoder to decrease the sound taxation of the processor, so far they don't seem to be making a difference. I've tried with the three sampling rates, also have decreased the CBR to 64, but can't play the 640x480 movie. Also haven't found a fullscreen option for 320x240 so far.
          I've achieved high quality high performance video playback at 640x480. Script details at http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AHigh%20quality%20640x480%20video%20in%20mplayer%20on%20the%20Universal)
          So it seems something has changed, in the process of aptitude upgrading, I cannot play high quality movies again.

          Don't know what the reason is, but the movies converted with the above-mentioned approach that I could play satisfactorily, can't be played well now, they lag etc.

          It seems there's been some changes in the X scripts or something, since now when you do xrandr -o normal it doesn't rotate the display back left, and pretends the landscape rotation on the Uni is the normal one. But it isn't, the display IS rotated. You only get it to rotate to its unrotated position via xrandr -o left which should be wrong however.

          Maybe this has something to do with it...

          If anyone has a clue to what could have changed and how to get high performance video, please share. It's a great shame, it was working, but can't get it to work again... Actually, maybe it was the hacks that I had installed, related to the yonggun's page  that made it work, and now nothing...

          EDIT 1: It is titchy-xserver, it seems it is built prerotated, however then it's slower than the xserver-kdrive-fbdev from yonggun's page, so it doesn't allow the playback of high quality video like the kdrive-fbdev xserver does. I've rolled back to xserver-xdrive-fbdev, however have now the stylus issues again, so more fiddlin' required...
          Title: Htc Universal
          Post by: webdork on June 02, 2008, 06:23:18 am
          Quote from: hakkinen
          My USB port works ok now. But after 10 minutes, it disconnects automatically so I can't connect to Internet anymore. I had to unplug USB and plug in again, it worked. How can I solve this problem?

          Look into the Ticht-autosuspend
          Title: Htc Universal
          Post by: Sam Liddicott on June 02, 2008, 05:20:28 pm
          Quote from: webdork
          Quote from: hakkinen
          My USB port works ok now. But after 10 minutes, it disconnects automatically so I can't connect to Internet anymore. I had to unplug USB and plug in again, it worked. How can I solve this problem?

          Look into the Ticht-autosuspend

          or even:

          apt-get update
          apt-get upgrade

          the updates should fix it.
          Title: Htc Universal
          Post by: datathief on June 03, 2008, 07:39:38 am
          Quote from: Sam Liddicott
          How do I make phoneui shiny go away?

          I can't make the missed-call screen go away.
          even "chvt" from an SSH session doesn't return:
          strace tail:

          open("/dev/tty0", O_RDWR)               = 3
          ioctl(3, KDGKBTYPE, 0xbef24c4f)         = 0
          ioctl(3, VIDIOC_G_COMP or VT_ACTIVATE, 0x1) = 0
          ioctl(3, VIDIOC_S_COMP or VT_WAITACTIVE
          I think SDL (used by titchy-phoneui-shiny, via pygame) can conflict with things that do chvt or openvt.  Are you also running titchy-phoneui-console (the whiptail UI)?
          Title: Htc Universal
          Post by: datathief on June 03, 2008, 07:43:16 am
          Quote from: ShiroiKuma
          Also haven't found a fullscreen option for 320x240 so far.
          Have you tried this (http://www.atari-source.org/node/57)?
          Title: Htc Universal
          Post by: ShiroiKuma on June 03, 2008, 08:33:25 am
          Quote from: datathief
          Quote from: ShiroiKuma
          Also haven't found a fullscreen option for 320x240 so far.
          Have you tried this (http://www.atari-source.org/node/57)?
          Thanks for the info. I've experimented with this fbmode, even seems to be the same page. It didn't work, but it seems to me to have referred to a 320x240 device. So just to be sure, I'll try to play with it tonight and will report on the results.

          So far however, I've rolled back to yonggun's xserver, which I've modified to work on the Uni. Will write instructions soon how to get it work. Using it, it's faster than your server, dunno why, but it works. The caveat is it only works with ratpoison as the WM, not with IceWM. Under your prerotated xserver however, I wasn't able to get it going at all, in a way, that would output watchable results... (
          Title: Htc Universal
          Post by: ShiroiKuma on June 04, 2008, 10:55:24 am
          Quote from: datathief
          I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
          That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
          Title: Htc Universal
          Post by: Sam Liddicott on June 05, 2008, 03:47:29 am
          Quote from: datathief
          Quote from: Sam Liddicott
          How do I make phoneui shiny go away?

          I can't make the missed-call screen go away.
          even "chvt" from an SSH session doesn't return:
          strace tail:

          open("/dev/tty0", O_RDWR)               = 3
          ioctl(3, KDGKBTYPE, 0xbef24c4f)         = 0
          ioctl(3, VIDIOC_G_COMP or VT_ACTIVATE, 0x1) = 0
          ioctl(3, VIDIOC_S_COMP or VT_WAITACTIVE
          I think SDL (used by titchy-phoneui-shiny, via pygame) can conflict with things that do chvt or openvt.  Are you also running titchy-phoneui-console (the whiptail UI)?

          Yes
          Title: Htc Universal
          Post by: datathief on June 06, 2008, 07:31:28 am
          Quote from: ShiroiKuma
          Quote from: datathief
          I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
          That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
          New version uploaded.  Now:
          • Uninstalls titchy-phoneui-console, to avoid some conflicts.
          • Can be closed using 'esc' (the windows key)
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          Also, I've uploaded a new titchy-hardware-support, that turns on the speaker on the outside of the lid (I'm assuming most of us make calls with the screen closed).

          Edit: Fixed a problem with titchy-hardware-support that caused a faint buzzing sound from the stereo speakers after resuming from suspend.
          Title: Htc Universal
          Post by: hakkinen on June 07, 2008, 07:14:51 am
          Quote from: datathief
          Quote from: ShiroiKuma
          Quote from: datathief
          I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
          That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
          New version uploaded.  Now:
          • Uninstalls titchy-phoneui-console, to avoid some conflicts.
          • Can be closed using 'esc' (the windows key)
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          Also, I've uploaded a new titchy-hardware-support, that turns on the speaker on the outside of the lid (I'm assuming most of us make calls with the screen closed).

          Edit: Fixed a problem with titchy-hardware-support that caused a faint buzzing sound from the stereo speakers after resuming from suspend.

          We have to upgrade which package???
          Title: Htc Universal
          Post by: datathief on June 07, 2008, 02:48:03 pm
          Quote from: hakkinen
          We have to upgrade which package???
          titchy-phoneui-shiny and titchy-hardware-support.

          And titchy-phoneui-base, now, too  -  I've made changes to this package to:
          • kill processes using the sound device before playing the ringtone (drastic, but better than not playing the ringtone at all)
          • allow the ringtone volume to be configured
          • allow personalised ringtones and more (see /etc/default/titchy-phoneui-base for examples)
          Title: Htc Universal
          Post by: ShiroiKuma on June 09, 2008, 03:47:10 am
          Quote from: datathief
          • kill processes using the sound device before playing the ringtone (drastic, but better than not playing the ringtone at all)
          Hmmm... this is quite tough )

          I've been thinking about this, but haven't had time to research it: specifically mplayer related. Would it not be possible not to kill, but send it a pause signal? I don't know if mplayer accepts pause commands externally, but theoretically even if it'd be emulating a space key press (in the worst case) this should be possible, no?
          Title: Htc Universal
          Post by: datathief on June 09, 2008, 04:58:20 am
          Quote from: ShiroiKuma
          Hmmm... this is quite tough )

          I've been thinking about this, but haven't had time to research it: specifically mplayer related. Would it not be possible not to kill, but send it a pause signal? I don't know if mplayer accepts pause commands externally, but theoretically even if it'd be emulating a space key press (in the worst case) this should be possible, no?
          Unfortunately, mplayer doesn't seem to release the audio device when paused, so the ringtone still wouldn't play.

          I think there may be a solution using a sound server  -  with pulseaudio, for example, it should be possible to mute all the streams except the ringtone during a call.  However, pulseaudio seems to have far too many dependencies to be the default.  I don't think it's nearly as easy using esound (lightweight, few dependencies), but I'll investigate.
          Title: Htc Universal
          Post by: ShiroiKuma on June 09, 2008, 07:04:44 am
          Quote from: datathief
          New version uploaded.  Now:
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          The dialer doesn't have UTF-8 support coded in, it doesn't display it properly after replacing Vera.ttf by a UTF-8 font.
          Title: Htc Universal
          Post by: ShiroiKuma on June 09, 2008, 09:59:53 am
          Quote from: datathief
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          I believe there is a serious flaw in the dialer and the all the new pygame dialogs in combination with X.

          When I bring up the dialog in X, it malfunctions and keyboard activity is echoed to the underlying X app, only clearing the part of the screen associated with it. To put it simply:

          Let's say I have rxvt open. I bring up the dialer, then press the down arrow a couple of times and then enter. I see the rows in the the underlying rxvt being cleared, i.e. the dialog backround disappears under these rows and the enter sends enter to the rxvt.

          If I kill xdm, it gets stuck in a black vt, that cannot be killed or exited, can't change to a vt, so that X cannot be quitted.

          Have you tested it with X, datathief?
          Title: Htc Universal
          Post by: datathief on June 09, 2008, 10:17:30 am
          Quote from: ShiroiKuma
          Quote from: datathief
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          I believe there is a serious flaw in the dialer and the all the new pygame dialogs in combination with X.

          When I bring up the dialog in X, it malfunctions and keyboard activity is echoed to the underlying X app, only clearing the part of the screen associated with it. To put it simply:

          Let's say I have rxvt open. I bring up the dialer, then press the down arrow a couple of times and then enter. I see the rows in the the underlying rxvt being cleared, i.e. the dialog backround disappears under these rows and the enter sends enter to the rxvt.

          If I kill xdm, it gets stuck in a black vt, that cannot be killed or exited, can't change to a vt, so that X cannot be quitted.

          Have you tested it with X, datathief?
          It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
          Title: Htc Universal
          Post by: datathief on June 09, 2008, 10:26:52 am
          Quote from: ShiroiKuma
          Quote from: datathief
          New version uploaded.  Now:
          • Has a rudimentary dialler (the contacts key, top row of the keyboard)
          The dialer doesn't have UTF-8 support coded in, it doesn't display it properly after replacing Vera.ttf by a UTF-8 font.
          I always forget that part...
          Title: Htc Universal
          Post by: ShiroiKuma on June 09, 2008, 10:34:43 am
          Quote from: datathief
          It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
          I thought you were gonna say that  

          OK, I'll think what next...

          It could be somehow associated with the different Xfbdev...

          Do you have an idea maybe, based on what you've changed in the latest version, what the culprit would be?

          I may be the only one, but having HiQ video is sorta important I think, to make we want to preserve yonggun's xserver over yours.

          EDIT1: Do you have version 1.8 of the shiny UI in your pool so that I can downgrade to it temporarily?
          Title: Htc Universal
          Post by: datathief on June 09, 2008, 11:21:38 am
          Quote from: ShiroiKuma
          Quote from: datathief
          It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
          I thought you were gonna say that  

          OK, I'll think what next...

          It could be somehow associated with the different Xfbdev...

          Do you have an idea maybe, based on what you've changed in the latest version, what the culprit would be?
          I haven't changed any of the keyboard or display code.

          As far as I can tell, SDL opens a new VT to get keyboard input.  It should switch to that VT when it needs to, and switch back when it's done, but something is causing that to fail  -  it stays on the xserver's VT, so keyboard events go to the xserver.

          I have a couple of ideas that may help.  I'll work on them tonight.

          Quote
          I may be the only one, but having HiQ video is sorta important I think, to make we want to preserve yonggun's xserver over yours.

          EDIT1: Do you have version 1.8 of the shiny UI in your pool so that I can downgrade to it temporarily?
          No.  I'll try to find a copy.

          Edit: I've made some changes  -  could you upgrade titchy-phoneui-shiny and let me know if it's any better?
          Title: Htc Universal
          Post by: ShiroiKuma on June 10, 2008, 03:12:14 am
          Quote from: datathief
          Edit: I've made some changes  -  could you upgrade titchy-phoneui-shiny and let me know if it's any better?
          Yeah, this one works without problems. The UTF-8 also works.

          I have two more "candy" like comments:

          1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
          2. I think there should be a keyboard repeat, if you hold the down or up button, the list should scroll...
          Title: Htc Universal
          Post by: Sam Liddicott on June 10, 2008, 03:16:48 am
          Quote from: datathief
          Quote from: ShiroiKuma
          Hmmm... this is quite tough )

          I've been thinking about this, but haven't had time to research it: specifically mplayer related. Would it not be possible not to kill, but send it a pause signal? I don't know if mplayer accepts pause commands externally, but theoretically even if it'd be emulating a space key press (in the worst case) this should be possible, no?
          Unfortunately, mplayer doesn't seem to release the audio device when paused, so the ringtone still wouldn't play.

          I think there may be a solution using a sound server  -  with pulseaudio, for example, it should be possible to mute all the streams except the ringtone during a call.  However, pulseaudio seems to have far too many dependencies to be the default.  I don't think it's nearly as easy using esound (lightweight, few dependencies), but I'll investigate.

          How about alsa dmix?

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on June 10, 2008, 03:23:35 am
          I've finally got vala working with glade, so I'll try my phone UI using vala and glade.

          Sam
          Title: Htc Universal
          Post by: datathief on June 10, 2008, 04:46:21 am
          Quote from: Sam Liddicott
          How about alsa dmix?

          Sam
          Do you have dmix working?

          This would solve the problem of the ringtone not playing (as long as everything uses it), but there's no way to mute everything but the ringtone.  Sending STOP signals to pause processes not involved in the call might work, though.
          Title: Htc Universal
          Post by: datathief on June 10, 2008, 04:51:38 am
          Quote from: ShiroiKuma
          1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
          Are there spaces in the vcf file after the ':' in the 'FN' field?  If not, could you post a vcard that exhibits this problem?
          Quote
          2. I think there should be a keyboard repeat, if you hold the down or up button, the list should scroll...
          Agreed.
          Title: Htc Universal
          Post by: linuxFreq on June 10, 2008, 08:17:00 am
          Hey,

          Got titchy installed last night...

          I had to format my SD slightly different to what was described...booted into haret with ramdisk.

          Mounted and formatted the card using fdisk on the universal.
          Made the file system on the universal too.

          Did a "sync" and unmounted.
          Did the tar stuff on the pc (saves transferring)...

          Changed the zImage and startup files to the ones provided on the wiki and managed to boot titchy...

          I couldn't get it to mount the file system when i did it all on the pc...not sure why but was probably just being silly and was too lazy to figure out why!

          Gonna play about with trying to get a window manager on the go...

          Do i need to install X...i notice there is an Xserver-titchy...does this do the job of X?

          Ta
          Title: Htc Universal
          Post by: datathief on June 10, 2008, 09:30:12 am
          Quote from: linuxFreq
          Do i need to install X...i notice there is an Xserver-titchy...does this do the job of X?
          Yes.
          Title: Htc Universal
          Post by: linuxFreq on June 10, 2008, 10:23:49 am
          Cool cheers.

          What's a good window manager to go with?  I've been reading through this whole thread and it's hard work!  I've got a feeling the answer is in here somewhere.

          I got flux but i get a couldn't connect to XServer error and Ice gives me a can't open display. I'm trying to not work on the universal as i have an exam tomorrow and on thursday but it's too tempting to play with!!
          Title: Htc Universal
          Post by: ShiroiKuma on June 10, 2008, 10:36:16 am
          In my opinion the best currently is ratpoison, but it's a little hardcore if you're not used to it and might be scary to the average Joe. For him then IceWM is by far the best for this usage, I think. Low weight, fast, not as fast as ratpoison, but stylus-clickable. I've experimented with many. In my view anything heavier than IceWM is unusuable on the Uni, too slow...

          That's also why gdm is too heavy and you have to use xdm.
          Title: Htc Universal
          Post by: datathief on June 10, 2008, 11:17:37 am
          Quote from: linuxFreq
          Cool cheers.

          What's a good window manager to go with?  I've been reading through this whole thread and it's hard work!  I've got a feeling the answer is in here somewhere.

          I got flux but i get a couldn't connect to XServer error and Ice gives me a can't open display. I'm trying to not work on the universal as i have an exam tomorrow and on thursday but it's too tempting to play with!!
          Try this:
          Code: [Select]
          apt-get install xinit
          echo icewm-session >.xinitrc
          startx

          Alternatively, install xdm, which will manage the X server and window manager.  Make sure you set the root password first, or create a new user with a password (xdm won't let you log in without a password).
          Title: Htc Universal
          Post by: linuxFreq on June 10, 2008, 03:10:56 pm
          Ah yeah cheers. When i rebooted it gave me the x window login screen.

          Now though i can't seem to get connected to the net. I had it working through the usb connection and windows vista as described in the wiki but now it's being weird.

          I can ping the universal from vista but can't talk to the pc from the universal. I am connected with "limited connectivity" according to windows...

          I would go into ubuntu but like i said i'm trying to pretend to myself that i'm studying and i need to be in windows for it...

          I tried connecting to my router quickly but wasn't successful. In what way is the wireless unstable? In that it is hard to maintain a connection?

          Edit:
          Yeah i installed xdm
          Title: Htc Universal
          Post by: datathief on June 11, 2008, 04:44:55 am
          Quote from: linuxFreq
          I can ping the universal from vista but can't talk to the pc from the universal. I am connected with "limited connectivity" according to windows...
          This means Windows is trying to obtain an IP address from the phone  -  this happens if Internet Connection Sharing is off (the "Allow other network users to connect..." option  -  see the wiki page).

          Quote
          I tried connecting to my router quickly but wasn't successful. In what way is the wireless unstable? In that it is hard to maintain a connection?
          Yes  -  the connection just stops working after a while.  It seems to be much more stable if you set it to run at 1Mbps.
          Title: Htc Universal
          Post by: ShiroiKuma on June 11, 2008, 05:58:49 am
          Quote from: datathief
          Quote from: ShiroiKuma
          1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
          Are there spaces in the vcf file after the ':' in the 'FN' field?  If not, could you post a vcard that exhibits this problem?
          I just checked. In the n: field, after the colon I have always one space. In the fn: field, the same. However, not all the records do have a fn: field, could this be the culprit?
          Title: Htc Universal
          Post by: linuxFreq on June 11, 2008, 09:04:08 am
          Quote from: datathief
          Quote from: linuxFreq
          I can ping the universal from vista but can't talk to the pc from the universal. I am connected with "limited connectivity" according to windows...
          This means Windows is trying to obtain an IP address from the phone  -  this happens if Internet Connection Sharing is off (the "Allow other network users to connect..." option  -  see the wiki page).

          I have it set up as per the instructions. It was definitely working before so I'm not sure what's happened. Been playing around with different settings this morning but no luck.
          Title: Htc Universal
          Post by: datathief on June 11, 2008, 10:01:28 am
          Quote from: ShiroiKuma
          Quote from: datathief
          Quote from: ShiroiKuma
          1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
          Are there spaces in the vcf file after the ':' in the 'FN' field?  If not, could you post a vcard that exhibits this problem?
          I just checked. In the n: field, after the colon I have always one space. In the fn: field, the same. However, not all the records do have a fn: field, could this be the culprit?
          If there's a FN field, it uses that (and I didn't add code to strip spaces off the beginning).  If there's no FN field, it uses the N field (and I did add code to strip spaces off the start of the N field).  So that might explain it.

          I've made changes and uploaded a new version of titchy-phoneui-shiny.
          Title: Htc Universal
          Post by: ShiroiKuma on June 11, 2008, 11:29:23 am
          Quote from: datathief
          If there's a FN field, it uses that (and I didn't add code to strip spaces off the beginning).  If there's no FN field, it uses the N field (and I did add code to strip spaces off the start of the N field).  So that might explain it.

          I've made changes and uploaded a new version of titchy-phoneui-shiny.
          Yes, it works fine now.
          Title: Htc Universal
          Post by: linuxFreq on June 11, 2008, 01:55:37 pm
          Hey,

          So i got the net working through usb and ubuntu no problem but because i'd made changes without knowing exactly what i'd done i did a fresh install of titchy...mainly because i couldn't get the touch screen calibration thing up ever since it crashed on the first attempt...

          So fresh install and all i've done is

          Code: [Select]
          apt-get install xdm icewm-experimental
          reboot
          On the previous install the logon screen would show up but i had not touch screen. Sometimes it didn't show up at boot up and i just had to do

          Code: [Select]
          xdm
          to get it working. Now however nothing happens. Am i missing something? Previously you said to either get xdm or xinit. Should i just forget xdm for now? I'm just slightly confused as to why it doesn't work at the moment?

          Cheers

          Cheers.
          Title: Htc Universal
          Post by: datathief on June 11, 2008, 05:44:43 pm
          Quote from: linuxFreq
          Code: [Select]
          apt-get install xdm icewm-experimental
          reboot
          You'll need an X server (xserver-titchy) too.
          Title: Htc Universal
          Post by: linuxFreq on June 11, 2008, 08:57:31 pm
          Ahhh how silly. I assumed that was already there...totally forgot doing it the first time.

          Don't suppose you could give me a bit of help with the old wireless. Got the modules loaded and sorted the rate. On my access point i can see that the uni is connected but not got an ip or anything:
          Code: [Select]
          Address                   Rate      Quality      RSSI      State                         Age
          00:09:2D:DE:13:37     0                        -82     llAuthenticated     0

          Here's what i've got in /etc/network/interfaces

          Code: [Select]
          auto wlan0
          iface wlan0 inet static
          address 192.168.1.99
          netmask 255.255.255.0
          gateway 192.168.1.1
          broadcast 192.168.1.255
          wireless-mode managed
          wireless-essid myEssid

          I've turned encryption off for the purpose of testing.  Would it work better with dhcp...?
          Title: Htc Universal
          Post by: ShiroiKuma on June 12, 2008, 03:55:12 am
          Quote from: ShiroiKuma
          but having HiQ video is sorta important I think
          I've lost the ability to play HiQ video on the Uni satisfactorily after a cycle of apt upgrades.

          My experimentation with it has shown a surprising result: I booted into Windows Mobile, and using TCPMP was able to play any and all mpgs with great viewing quality, no choppiness, even the original ones 640x480, not reencoded for smoother playback.

          So the Universal is able to play 640x480 video with no probs.

          The problem then lay on the debian decoding end. mplayer, ffmpeg, totem, nothing seems to currently be able to play the original non-reencoded mpgs, even the reencoded ones are not watchable, it's too slow, choppy...

          But if Windows Mobile can do it, it surely must be possible under Debian. So far playing with it, and searching the web, hasn't indicated to me any good solution.
          Title: Htc Universal
          Post by: datathief on June 12, 2008, 06:05:53 am
          Quote from: linuxFreq
          Ahhh how silly. I assumed that was already there...totally forgot doing it the first time.

          Don't suppose you could give me a bit of help with the old wireless. Got the modules loaded and sorted the rate. On my access point i can see that the uni is connected but not got an ip or anything:
          Code: [Select]
          Address                   Rate      Quality      RSSI      State                         Age
          00:09:2D:DE:13:37     0                        -82     llAuthenticated     0

          Here's what i've got in /etc/network/interfaces

          Code: [Select]
          auto wlan0
          iface wlan0 inet static
          address 192.168.1.99
          netmask 255.255.255.0
          gateway 192.168.1.1
          broadcast 192.168.1.255
          wireless-mode managed
          wireless-essid myEssid

          I've turned encryption off for the purpose of testing.  Would it work better with dhcp...?
          If you're not using dhcp, your access point may not show an IP address for it.  Can you ping the AP?

          (I notice the dhcp-client and iputils-ping packages are missing from my rootfs.  Oops.  I've fixed that now.)
          Title: Htc Universal
          Post by: linuxFreq on June 12, 2008, 07:02:20 am
          Quote from: datathief
          If you're not using dhcp, your access point may not show an IP address for it.  Can you ping the AP?

          (I notice the dhcp-client and iputils-ping packages are missing from my rootfs.  Oops.  I've fixed that now.)

          Couldn't ping.
          I got iputils-ping on my last install but not got round to it this time. I was just playing around last night before i went to bed. I know i couldn't ping the htc from another machine on the network.
          Got my last exam in 2 hours so i'm gonna have a real play after that.

          Also i installed xserver-titchy again and tscalib came up again, but i touches were not recoginised. I quickly tried cat -v /dev/input/event0 but didn't get any output. I'm guessing i need to change or maybe make some config files...

          After tscalib loads the first time it doesn't load again...how do i reset it so i can calibrate again as there doesn't appear to be anywhere to load it...
          Title: Htc Universal
          Post by: datathief on June 12, 2008, 08:29:45 am
          Quote from: linuxFreq
          Quote from: datathief
          If you're not using dhcp, your access point may not show an IP address for it.  Can you ping the AP?

          (I notice the dhcp-client and iputils-ping packages are missing from my rootfs.  Oops.  I've fixed that now.)

          Couldn't ping.
          I got iputils-ping on my last install but not got round to it this time. I was just playing around last night before i went to bed. I know i couldn't ping the htc from another machine on the network.
          Got my last exam in 2 hours so i'm gonna have a real play after that.
          I think busybox is installed  -  try:
          Code: [Select]
          busybox ping xx.xx.xx.xx
          Quote
          Also i installed xserver-titchy again and tscalib came up again, but i touches were not recoginised. I quickly tried cat -v /dev/input/event0 but didn't get any output. I'm guessing i need to change or maybe make some config files...
          I've heard of a possible explanation for this  -  if wifi is turned on before you boot linux, the touchscreen doesn't work.

          Quote
          After tscalib loads the first time it doesn't load again...how do i reset it so i can calibrate again as there doesn't appear to be anywhere to load it...
          Delete /etc/ts.conf and restart X.
          Title: Htc Universal
          Post by: datathief on June 12, 2008, 12:52:20 pm
          A request for comments:

          I'm planning to add the following to the titchy-phoneui-shiny clock screen:
          • Battery indicator
          • Missed call icon
          • Received SMS icon
          • PIN lock
          The missed call and SMS received screens will be moved "behind" the clock screen (if it's active), and so protected by the PIN lock.

          Any comments/requests?
          Title: Htc Universal
          Post by: ShiroiKuma on June 12, 2008, 02:50:27 pm
          The two icons should be touch sensitive, i.e. tapping on them should take you to a missed calls listing, messages listing - or the message directly, alternatively.

          Other than that, no criticism intended, I think MMS support is much more necessary than these eye-candy things, but that might be a tough cookie to implement from what I've read in various places so far.
          Title: Htc Universal
          Post by: ShiroiKuma on June 12, 2008, 02:57:30 pm
          On a slightly similar note, a request for comments also:

          I've been thinking about things that I consider missing, and how to get them done. What do you think, would a bounty system be good to motivate some skillful hackers to tackle these. From what I've read on the web so far lately, it actually seems bounties are counter productive in motivating the development of Free Software, so I'm not sure.

          But I was thinking, I could easily offer, let's say 200 EUR for each of the following:

          1. MMS
          2. Getting the camera to work for photos, videos, with a suitable X app
          3. HiQ video, getting it to play 640x480 movies which I've seen the Uni is capable of on the Windows Mobile side, in debian
          4. Bluetooth A2DP support, so that listening to mp3 and the movies via bluetooth headphones would be fixed

          Is it worth it? Or not likely that someone will take up the task?
          Title: Htc Universal
          Post by: datathief on June 12, 2008, 04:05:37 pm
          Quote from: ShiroiKuma
          The two icons should be touch sensitive, i.e. tapping on them should take you to a missed calls listing, messages listing - or the message directly, alternatively.

          Other than that, no criticism intended, I think MMS support is much more necessary than these eye-candy things, but that might be a tough cookie to implement from what I've read in various places so far.
          I have no need for MMS support, but it should be possible to pass the URL from a "push" SMS message to something that can download it and decode it.  Sending MMS, IIRC, is done via an internet connection.  The software to do all this may already exist.
          Title: Htc Universal
          Post by: datathief on June 12, 2008, 04:15:20 pm
          Quote from: ShiroiKuma
          1. MMS
          Might already exist in a usable form.  If not, someone may be able to adapt work done for another open-source phone stack.

          Quote
          2. Getting the camera to work for photos, videos, with a suitable X app
          A driver for the camera exists for the 2.4 kernel, so someone may be able to port it to 2.6.21.

          Quote
          3. HiQ video, getting it to play 640x480 movies which I've seen the Uni is capable of on the Windows Mobile side, in debian
          4. Bluetooth A2DP support, so that listening to mp3 and the movies via bluetooth headphones would be fixed
          These aren't as "defined" as the other problems, so I imagine it would be more difficult to get someone to take them up...
          Title: Htc Universal
          Post by: ShiroiKuma on June 12, 2008, 04:54:03 pm
          Quote from: datathief
          Quote from: ShiroiKuma
          1. MMS
          Might already exist in a usable form.  If not, someone may be able to adapt work done for another open-source phone stack.
          Yeah, I've been trying to find something workable to be adapted, so far I don't think there is a working MMS implementation. And yeah, it is done via GPRS/UMTS, so it shouldn't be such a big problem theoretically.

          Quote
          Quote
          2. Getting the camera to work for photos, videos, with a suitable X app
          A driver for the camera exists for the 2.4 kernel, so someone may be able to port it to 2.6.21.
          So I've read, but so far no work for 2.6 has been done on it it seems.

          Quote
          Quote
          3. HiQ video, getting it to play 640x480 movies which I've seen the Uni is capable of on the Windows Mobile side, in debian
          4. Bluetooth A2DP support, so that listening to mp3 and the movies via bluetooth headphones would be fixed
          These aren't as "defined" as the other problems, so I imagine it would be more difficult to get someone to take them up...
          Yeah, but real problems, should be workable. I've been meaning to contact a local kernel/system hacker I know for a long time to pay him to work on these, but keep procrastinating. I'd probably have to get him one Uni too etc. so not sure if I wanna do that...  

          Maybe there's another way to get it done, that's why I thought a larger web call to get it could help, but am skeptical about it too...  
          Title: Htc Universal
          Post by: linuxFreq on June 12, 2008, 10:25:34 pm
          Hey,

          Got X working, touchscreen working...managed to connect on the wifi so i know that's working.

          I was wondering how your phone tools can produce a nice shiny graphic even before X has been installed? Could you enlighten me...?
          Title: Htc Universal
          Post by: ShiroiKuma on June 13, 2008, 09:11:58 am
          Quote from: datathief
          • Missed call icon
          • Received SMS icon
          Further what occurred to me: The two icons, being active, i.e. leading to missed calls, and SMS lists, should then be dialable.

          I.e. a missed calls icon => missed calls list => scroll to a particular call => dial

          Same with SMS => i.e. SMS list => scroll to SMS => read => reply or call back
          Title: Htc Universal
          Post by: linuxFreq on June 13, 2008, 10:35:49 am
          Wifi working great apart from after a suspend.

          Where are the suspend and wake up scripts kept?

          I found after suspend i have to

          Code: [Select]
          rmmod acx
          modprobe acx
          /etc/init.d/networking restart

          to get a connection.

          I would like to change it so when it wakes up it performs this. Or maybe when it suspends to do the

          Code: [Select]
          rmmod acx
          Title: Htc Universal
          Post by: ShiroiKuma on June 13, 2008, 10:52:52 am
          Quote from: linuxFreq
          Wifi working great apart from after a suspend.
          What did you do to make it work great, just change the speed as datathief indicated?

          And what do you mean by great, does the connection still stop working after some time?
          Title: Htc Universal
          Post by: Sam Liddicott on June 14, 2008, 03:35:43 am
          Quote from: ShiroiKuma
          On a slightly similar note, a request for comments also:

          I've been thinking about things that I consider missing, and how to get them done. What do you think, would a bounty system be good to motivate some skillful hackers to tackle these. From what I've read on the web so far lately, it actually seems bounties are counter productive in motivating the development of Free Software, so I'm not sure.

          But I was thinking, I could easily offer, let's say 200 EUR for each of the following:

          1. MMS
          2. Getting the camera to work for photos, videos, with a suitable X app
          I'll add 25 UK pounds to that.
          Quote from: ShiroiKuma
          3. HiQ video, getting it to play 640x480 movies which I've seen the Uni is capable of on the Windows Mobile side, in debian
          I'll add 25 UK pounds to that.
          Quote from: ShiroiKuma
          4. Bluetooth A2DP support, so that listening to mp3 and the movies via bluetooth headphones would be fixed
          I'll add 25 UK pounds to that.
          Quote from: ShiroiKuma
          Is it worth it? Or not likely that someone will take up the task?

          Dunno.
          I've had a bounty here for nearly a year; http://www.liddicott.com/~sam/?p=76 (http://www.liddicott.com/~sam/?p=76)
          with other offers it's now at about $600. Work is (and was) being done but as far as I can tell it has no effect on the rate of work.

          I'm now getting wary of a liability of timeless bounties I'm building up, so I'll have to set 1 year as a deadline. After that it's up to my discretion.

          Sam
          Title: Htc Universal
          Post by: webdork on June 15, 2008, 01:46:52 am
          Quote from: ShiroiKuma
          Quote from: linuxFreq
          Wifi working great apart from after a suspend.
          What did you do to make it work great, just change the speed as datathief indicated?

          And what do you mean by great, does the connection still stop working after some time?

          I doubt that it is working great. There's a new driver out for the acx... I wish I knew enough to build it in the kernel :/ ... I get stuck with the cs.c and mem.c files for the Uni
          Title: Htc Universal
          Post by: ShiroiKuma on June 15, 2008, 03:00:08 am
          Quote from: webdork
          I doubt that it is working great. There's a new driver out for the acx... I wish I knew enough to build it in the kernel :/ ... I get stuck with the cs.c and mem.c files for the Uni
          Where? I could try building it...
          Title: Htc Universal
          Post by: linuxFreq on June 15, 2008, 09:52:52 am
          Quote from: webdork
          Quote from: ShiroiKuma
          Quote from: linuxFreq
          Wifi working great apart from after a suspend.
          What did you do to make it work great, just change the speed as datathief indicated?

          And what do you mean by great, does the connection still stop working after some time?

          I doubt that it is working great. There's a new driver out for the acx... I wish I knew enough to build it in the kernel :/ ... I get stuck with the cs.c and mem.c files for the Uni

          I dunno. It's not been as bad as i expected. I've just been doing a ping test to try an see how long it's lasting...so far i'm on sequence 1200 and it's been going about 15 minutes. So far so good.

          I think the acx driver info can be found at http://acx100.sourceforge.net/ (http://acx100.sourceforge.net/)
          Title: Htc Universal
          Post by: ShiroiKuma on June 16, 2008, 06:00:26 am
          Quote from: datathief
          Also, I've uploaded a new titchy-hardware-support, that turns on the speaker on the outside of the lid (I'm assuming most of us make calls with the screen closed).
          Thanks a lot for this, this is really beneficial. Up to that point with the lid closed, it was really quiet...

          On an associated note, it still seems to me, the phone is very quiet when ringing. htcunid volume 5 seems to make no difference. But using the same ringtone under Windows Mobile with the volume brought all the way up results in a really loud ring, whereas under Debian the ring is still relativelly quiet. Do you experience the same?
          Title: Htc Universal
          Post by: datathief on June 16, 2008, 02:00:00 pm
          Quote from: linuxFreq
          Where are the suspend and wake up scripts kept?
          /etc/apm/*.

          If you're feeling ambitious, you might be able to use /etc/network/run/ifstate to determine whether or not to bring wlan0 back up on resume.
          Title: Htc Universal
          Post by: datathief on June 16, 2008, 02:04:00 pm
          Quote from: ShiroiKuma
          On an associated note, it still seems to me, the phone is very quiet when ringing. htcunid volume 5 seems to make no difference. But using the same ringtone under Windows Mobile with the volume brought all the way up results in a really loud ring, whereas under Debian the ring is still relativelly quiet. Do you experience the same?
          There's a volume setting in /etc/default/titchy-phoneui-base - try setting it to 100.
          Title: Htc Universal
          Post by: domi007 on June 18, 2008, 04:20:26 pm
          Hi EB!
          Finally I got my TitchyMobile working (based on the package from shikomura).
          But, I cannot connect to the internet via USB.
          I have a Debian install in a virtual PC. I connected the PDA to the virtual PC (and the connection was successful: Windows didn't see it anymore), applied all the commands, found in wiki.neilandtheresa.co.uk, but no success.

          Do you have any ideas?
          Thanx!
          DOMy
          Title: Htc Universal
          Post by: Sam Liddicott on June 19, 2008, 03:16:21 am
          Quote from: domi007
          Hi EB!
          Finally I got my TitchyMobile working (based on the package from shikomura).
          But, I cannot connect to the internet via USB.
          I have a Debian install in a virtual PC. I connected the PDA to the virtual PC (and the connection was successful: Windows didn't see it anymore), applied all the commands, found in wiki.neilandtheresa.co.uk, but no success.

          Do you have any ideas?
          Thanx!
          DOMy

          Try using tcpdump on the debian pc; maybe try booting from a live CD.

          My xda network interfaces is:

          Code: [Select]
          allow-hotplug usb0
          iface usb0 inet static
            address 192.168.2.2
            netmask 255.255.255.0
            gateway 192.168.2.1
            post-up echo nameserver 192.168.2.1 > /etc/resolv.conf

          and on my desktop pc:

          Code: [Select]
          allow-hotplug usb0
          auto usb0
          iface usb0 inet static
                  address 192.168.2.1
                  netmask 255.255.255.0
                  post-up echo 1 > /proc/sys/net/ipv4/ip_forward; iptables -D FORWARD -j ACCEPT; iptables -A FORWARD -j ACCEPT; iptables -t nat -D POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE

          I still have to do
           ifdown usb0 ; ifup usb0
          if I re-connect the xda, but it works on it's own the first time round.

          Sam
          Title: Htc Universal
          Post by: linuxFreq on June 19, 2008, 07:14:21 am
          Hi,

          Was just wondering about the acx driver. Does titchy come with the latest version?

          This tutorial here (http://acx100.sourceforge.net/wiki/Distribution_list/Debian) says that the acx-100 driver is in the contrib repo and was just wondering if i should try install it.

          I've found wifi to be stable for browsing simple websites but try an apt-get install xxx and you're lucky if it lasts 20 seconds...
          Title: Htc Universal
          Post by: Flameweaver on June 19, 2008, 08:33:16 am
          Hi all,

          Firstly great job on getting Debian running on the Universal, might squeeze some more life out of the handset yet.
          I am a linux beginner, but quite happy with commanline stuff and happily have Titchy installed on my dual partitioned SD card.
          I'd like to get UMTS data working as I'm on an unlimited data plan so no problems apt-get'ing over the air.

          I have edited /etc/default/titchy-phone-daemon.conf to GPRS_APN="general.t-mobile.uk"
          And I've also added "user" and "pass" to the chap and pap secrets files.

          When running:

          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']pppd pty 'socat - tcp:127.0.0.1:1702' noauth defaultroute usepeerdns debug nodetach[/div]

          Everything looks positive, primary and secondary dns are picked up but the following lines do appear:
          Could not determine remote IP address: defaulting to 10.64.64.64
          Cannot determine ethernet address for proxy ARP

          The terminal finishes with a flashing cursor after:
          Script /etc/ppp/ip-up finished (pid 1486). status = 0x0

          I have to Ctrl-C to get back to prompt... Any suggestions where to go next?

          Many thanks!
          Alex
          Title: Htc Universal
          Post by: domi007 on June 19, 2008, 09:53:05 am
          Quote from: linuxFreq
          Hi,

          Was just wondering about the acx driver. Does titchy come with the latest version?

          This tutorial here (http://acx100.sourceforge.net/wiki/Distribution_list/Debian) says that the acx-100 driver is in the contrib repo and was just wondering if i should try install it.

          I've found wifi to be stable for browsing simple websites but try an apt-get install xxx and you're lucky if it lasts 20 seconds...

          I heard, that it isn't so easy: the chip in the Universal is not the same as the chip supported by this driver.
          Therefore you must have other/modified files also (mem.c for example), and this files aren't debugged, but they are from the driver originally written for the hp hx4700, which is also a little bit different as the Uni. So, the small differences and the modified files together cause the stability problems. I tried to contact with the last people, who has updated and modified the driver, but he doesn't answer....


          Sam Liddicott:
          Thank you, but how can I write > character with the keyboard of the Universal?  

          MOD:
          I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
          ping www.google.com
          ping: unknown host www.google.com

          But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

          ifconfig usb0 up says nothing bad, runs normal without error messages.

          DOMy
          Title: Htc Universal
          Post by: datathief on June 19, 2008, 10:24:12 am
          Quote from: Flameweaver
          The terminal finishes with a flashing cursor after:
          Script /etc/ppp/ip-up finished (pid 1486). status = 0x0

          I have to Ctrl-C to get back to prompt... Any suggestions where to go next?

          Many thanks!
          Alex
          At that point you are connected.  Move to a different terminal (alt+right/left) and try to ping something.  Alternatively remove "debug noattach" from the pppd command and it will run in the background.
          Title: Htc Universal
          Post by: datathief on June 19, 2008, 10:30:31 am
          Quote from: datathief
          Quote from: ShiroiKuma
          Other than that, no criticism intended, I think MMS support is much more necessary than these eye-candy things, but that might be a tough cookie to implement from what I've read in various places so far.
          I have no need for MMS support, but it should be possible to pass the URL from a "push" SMS message to something that can download it and decode it.  Sending MMS, IIRC, is done via an internet connection.  The software to do all this may already exist.
          Uploaded a new version of titchy-phone-daemon.  If an MMS message is received, it will be treated as SMS, but the URL of the MMS will be passed to the event.d scripts as $4.  What happens next is someone else's problem, I'm afraid, but I think downloading and decoding a simple picture message should be quite simple.

          Edit: This project (http://python-mms.sourceforge.net/) can apparently encode, decode and send MMS.
          Title: Htc Universal
          Post by: datathief on June 19, 2008, 11:32:57 am
          Quote from: domi007
          Thank you, but how can I write > character with the keyboard of the Universal?  
          http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard)
          Title: Htc Universal
          Post by: domi007 on June 19, 2008, 12:47:45 pm
          Quote from: datathief
          Quote from: domi007
          Thank you, but how can I write > character with the keyboard of the Universal?  
          http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Tips/Keyboard)


          Thank you, second time too!

          But, could someone say something to this:
          [!--quoteo(post=0:date=:name=domi007)--][div class=\'quotetop\']QUOTE(domi007)[/div][div class=\'quotemain\'][!--quotec--]MOD:
          I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
          ping www.google.com
          ping: unknown host www.google.com

          But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

          ifconfig usb0 up says nothing bad, runs normal without error messages.
          [/quote]

          Thanks!
          DOMy
          Title: Htc Universal
          Post by: datathief on June 20, 2008, 05:25:07 am
          Quote from: domi007
          I could do it already (i mounted the partition, and modified the file with my pc), but it isn't working nevertheless. I applied all the settings, but nothing. Ping command says:
          ping www.google.com
          ping: unknown host www.google.com

          But, in Windows, it says already that "USB Network is connected", but I cannot ping anything. (I also shared my network connection with the "USB Network")

          ifconfig usb0 up says nothing bad, runs normal without error messages.
          Does:
          Code: [Select]
          ping 66.102.9.147do anything?

          Can you post the output of running ipconfig on the Windows machine, and ifconfig on the phone?
          Title: Htc Universal
          Post by: domi007 on June 20, 2008, 12:56:02 pm
          Quote from: datathief
          Does:
          Code: [Select]
          ping 66.102.9.147do anything?

          Can you post the output of running ipconfig on the Windows machine, and ifconfig on the phone?

          No, "Destination Host is Unreachable".

          ipconfig on my Windows machine (translated)

          Code: [Select]
          Windows IP configuration


          Ethernet-adapter VMware Network Adapter VMnet8:

                  Connection-specific DNS Suffix. . . . :
                  IP-adress. . . . . . . . . . . . . . . . : 192.168.1.100
                  Subnet Mask. . . . . . . . . . . : 255.255.255.0
                  Default Gateway. . . . . . . . : 192.168.1.1

          Ethernet-adapter Local Connection:

                  Connection-specific DNS Suffix. . . . :
                  IP-adress. . . . . . . . . . . . . . . . : 10.0.0.40
                  Subnet mask. . . . . . . . . . . : 255.255.255.0
                  Default gateway. . . . . . . . : 10.0.0.40

          PPP-adapter [my_internet_connection]:

                  Connection-specific DNS Suffix. . . . :
                  IP-adress. . . . . . . . . . . . . . . . : 212.183.66.233
                  Subnet mask. . . . . . . . . . . : 255.255.255.255
                  Default gateway. . . . . . . . : 212.183.66.233

          Ethernet-adapter USB Network:

                  Connection-specific DNS Suffix. . . . :
                  IP-adress. . . . . . . . . . . . . . . . : 192.168.0.1
                  Subnet mask. . . . . . . . . . . : 255.255.255.0
                  Default gateway. . . . . . . . :

          ifconfig on my HTC Universal (only the usb0 connection):
          Code: [Select]
          usb0             Link encap:Ethernet   HWADDR 42:41:9C:2e:14:79
                           inet addr: 192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
                           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
                           RX packets:82 errors:0 dropped:0 overruns:0 frame:0
                           TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
                           collisions:0 txqueuelen:1000
                           RX bytes:20439 (19.9KiB)   TX bytes: 5675 (5.5 KiB)

          That's it, thank you!
          DOMy
          Title: Htc Universal
          Post by: datathief on June 20, 2008, 06:13:50 pm
          Quote from: domi007
          ifconfig on my HTC Universal (only the usb0 connection):
          Code: [Select]
          usb0             Link encap:Ethernet   HWADDR 42:41:9C:2e:14:79
                           inet addr: 192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
                           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
                           RX packets:82 errors:0 dropped:0 overruns:0 frame:0
                           TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
                           collisions:0 txqueuelen:1000
                           RX bytes:20439 (19.9KiB)   TX bytes: 5675 (5.5 KiB)

          That's it, thank you!
          DOMy
          The phone's IP address is wrong.  Try:
          Code: [Select]
          ifconfig usb0 192168.0.2
          Title: Htc Universal
          Post by: datathief on June 20, 2008, 06:18:21 pm
          I've added a package of network settings and scripts (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Packages/titchy-network-settings).

          It takes care of the USB settings, GPRS (including dial-on-demand), and WiFi (including powering it down on suspend, and lowering the speed for extra stability).

          It's not fully tested at this stage.  Anyone want to give it a try?

          Edit: Also fixed a bug in titchy-phone-daemon that stopped GPRS working.

          Edit2: Another titchy-phone-daemon update.  Running "/etc/init.d/titchy-phone-daemon stop" now unregisters from the network, allowing "flight mode".
          Title: Htc Universal
          Post by: domi007 on June 21, 2008, 11:04:05 am
          Hi datathief,
          First of all, if you think, you can add my installation guide to the Wiki page.
          Here can you find it: http://forum.xda-developers.com/showpost.p...;postcount=2056 (http://forum.xda-developers.com/showpost.php?p=2316775&postcount=2056)

          Second I tried the IP address, but the ping command says now:
          Code: [Select]
          connect: Network is unreachable
          DOMy
          Title: Htc Universal
          Post by: datathief on June 21, 2008, 07:16:46 pm
          Quote from: domi007
          Second I tried the IP address, but the ping command says now:
          Code: [Select]
          connect: Network is unreachable
          Maybe you need to do:
          Code: [Select]
          route add default gw 192.168.0.1
          Or you could try installing titchy-network-settings and just:
          Code: [Select]
          ifup usb0
          Title: Htc Universal
          Post by: domi007 on June 22, 2008, 04:49:51 am
          Quote from: datathief
          Quote from: domi007
          Second I tried the IP address, but the ping command says now:
          Code: [Select]
          connect: Network is unreachable
          Maybe you need to do:
          Code: [Select]
          route add default gw 192.168.0.1
          Or you could try installing titchy-network-settings and just:
          Code: [Select]
          ifup usb0

          I will try titchy-network-settings.

          But, dpkg says, that titchy-network-settings depends on titchy-phone-daemon and titchy-hardware-support. If I try to install these packages, dpkg says, that they are already installed by htcunid package (therefore there is a conflict). Should I replace the htcunid packages with the two, mentioned above?

          Mod:
          I had to uninstall the htcunid package, and now I have all the packages installed, and I did ifup usb0, it said: ifup: interface usb0 already configured, but ping doesn't work....I have to think, that something with my Windows isn't okay, but I don't know, what.
          I shared the internet connection with the USB network, whatelse can I do..?
          It is very nerve-racking.

          Thank You!
          DOMy
          Title: Htc Universal
          Post by: datathief on June 22, 2008, 09:51:14 am
          Quote from: domi007
          But, dpkg says, that titchy-network-settings depends on titchy-phone-daemon and titchy-hardware-support. If I try to install these packages, dpkg says, that they are already installed by htcunid package (therefore there is a conflict). Should I replace the htcunid packages with the two, mentioned above?
          These packages replace htcunid, which is an old obsolete package.  It is safe to install them.

          Quote
          I had to uninstall the htcunid package, and now I have all the packages installed, and I did ifup usb0, it said: ifup: interface usb0 already configured, but ping doesn't work....I have to think, that something with my Windows isn't okay, but I don't know, what.
          Make sure you have the following section in /etc/network/interfaces:
          Code: [Select]
          iface usb0 inet static
            address 192.168.0.2
            netmask 255.255.255.0
            gateway 192.168.0.1

          Then try:
          Code: [Select]
          ifdown --force usb0
          ifup usb0

          If you still have problems, try rebooting.  If you still cannot connect, please post the results of:
          Code: [Select]
          ifconfig usb0
          route -n
          Title: Htc Universal
          Post by: ShiroiKuma on June 22, 2008, 10:17:49 am
          I would like to disable the clock display before suspend, so that the screen doesn't have to re-render when coming out of suspend. It's not evident to me now, where in the scripts this clock is caled before suspend. How can I disable it?
          Title: Htc Universal
          Post by: datathief on June 22, 2008, 12:06:49 pm
          Quote from: ShiroiKuma
          I would like to disable the clock display before suspend, so that the screen doesn't have to re-render when coming out of suspend. It's not evident to me now, where in the scripts this clock is caled before suspend. How can I disable it?
          Code: [Select]
          rm /etc/apm/suspend.d/99titchy-phoneui-shiny
          Title: Htc Universal
          Post by: domi007 on June 22, 2008, 01:37:15 pm
          Quote from: datathief
          Quote from: domi007
          But, dpkg says, that titchy-network-settings depends on titchy-phone-daemon and titchy-hardware-support. If I try to install these packages, dpkg says, that they are already installed by htcunid package (therefore there is a conflict). Should I replace the htcunid packages with the two, mentioned above?
          These packages replace htcunid, which is an old obsolete package.  It is safe to install them.

          Quote
          I had to uninstall the htcunid package, and now I have all the packages installed, and I did ifup usb0, it said: ifup: interface usb0 already configured, but ping doesn't work....I have to think, that something with my Windows isn't okay, but I don't know, what.
          Make sure you have the following section in /etc/network/interfaces:
          Code: [Select]
          iface usb0 inet static
            address 192.168.0.2
            netmask 255.255.255.0
            gateway 192.168.0.1

          Then try:
          Code: [Select]
          ifdown --force usb0
          ifup usb0

          If you still have problems, try rebooting.  If you still cannot connect, please post the results of:
          Code: [Select]
          ifconfig usb0
          route -n

          datathief:
          You did it! I can only say, thank you very much, awesome, it is working now!!
          Very good job, thank you twice!!

          DOMy

          BTW:
          What do you think about my tutorial? Perhaps, it can be useful for someone.
          2. the apt-get didn't find any packages, could you post please your sources.list file?
          Thanks!
          Title: Htc Universal
          Post by: datathief on June 24, 2008, 06:27:06 am
          Quote from: domi007
          What do you think about my tutorial? Perhaps, it can be useful for someone.
          I'll take a look at it.

          Quote
          2. the apt-get didn't find any packages, could you post please your sources.list file?
          The default sources.list from my rootfs (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Installing_Debian):
          Code: [Select]
          deb http://ftp.us.debian.org/debian testing main
          deb http://debian.neilandtheresa.co.uk/ titchy/
          (my personal sources.list uses my ISP's Debian mirror, which wouldn't be appropriate for you).
          Title: Htc Universal
          Post by: kitor on June 25, 2008, 09:59:03 am
          I'm going to install titchy-desktop and xserver-titchy but apt-get didn't find them. What I'm doing wrong?

          I have a working WiFi connection...

          [edit]

          Ok, i've done apt-get update and now apt-get found packages - i'm downloading it
          Title: Htc Universal
          Post by: datathief on June 25, 2008, 04:52:25 pm
          New version of titchy-hardware-support.  If you've noticed these bugs, upgrade.
          • Clicking sound from the stereo speakers on resume.
          • If headphones are plugged in on suspend, sound plays from speakers on resume.
          Title: Htc Universal
          Post by: IIZIIm on June 26, 2008, 02:28:35 pm
          Is there a default root password in titchy?
          I installed xserver-titchy, icewm and xdm and now i can't log in as root anymore, but only as the regular user i created.
          Title: Htc Universal
          Post by: IIZIIm on June 26, 2008, 03:23:10 pm
          Never mind, i did something like FN-'Letter"-p and logged in in console as root.
          Is this a bug: In xterm and xdm-login i could not login as root?
          Title: Htc Universal
          Post by: domi007 on June 26, 2008, 04:23:18 pm
          Hi,
          One small question now: What is the differnce between debian ARM packages and debian ARMEL packages?
          Why can'T we use a normal ARM package on the Universal?

          Thanks!
          DOMy
          Title: Htc Universal
          Post by: IIZIIm on June 26, 2008, 04:43:58 pm
          It worked, when i created a password. So everthing fine now.
          .
          .
          .
          What's going on with wifi, any patches written?
          Did you try http://gnulinux.biz/files/Universal/sd-mmc/2.6.16-obsolete/ (http://gnulinux.biz/files/Universal/sd-mmc/2.6.16-obsolete/)
          Title: Htc Universal
          Post by: IIZIIm on June 26, 2008, 04:55:27 pm
          Quote
          Hi,
          One small question now: What is the differnce between debian ARM packages and debian ARMEL packages?
          Why can'T we use a normal ARM package on the Universal?

          Thanks!
          DOMy

          It is about what they are compiled for, eabi or oabi.

          *Just playing supertux on universal*
          Title: Htc Universal
          Post by: VecH on June 27, 2008, 12:30:20 am
          Each time after boot date and time are reset to 1998 year
          Title: Htc Universal
          Post by: IIZIIm on June 27, 2008, 05:38:08 am
          When i slide the key on the right side of the backlight key, the backlight key stops working.
          Is there a programm for monitoring battery status?

          BTW great work, datathief.

          greets
          Title: Htc Universal
          Post by: kitor on June 27, 2008, 08:48:13 am
          Quote from: IIZIIm
          Never mind, i did something like FN-'Letter"-p and logged in in console as root.
          Is this a bug: In xterm and xdm-login i could not login as root?

          You must go to console and set password for root (passwd) or you can't log in...
          Title: Htc Universal
          Post by: IIZIIm on June 28, 2008, 04:34:32 am
          Quote from: kitor
          Quote from: IIZIIm
          Never mind, i did something like FN-'Letter"-p and logged in in console as root.
          Is this a bug: In xterm and xdm-login i could not login as root?

          You must go to console and set password for root (passwd) or you can't log in...
          That's what i suggested and did.

          I found a kernel source with slightly improved wifi, it downloads 300kb/s for about 2 minutes befor it crashes,
           http://www.linuxtogo.org/~goxboxlive/htcuniversal/Kernel/ (http://www.linuxtogo.org/~goxboxlive/htcuniversal/Kernel/)
          Title: Htc Universal
          Post by: webdork on June 28, 2008, 09:07:38 am
          Quote from: IIZIIm
          I found a kernel source with slightly improved wifi, it downloads 300kb/s for about 2 minutes befor it crashes,
           http://www.linuxtogo.org/~goxboxlive/htcuniversal/Kernel/ (http://www.linuxtogo.org/%7Egoxboxlive/htcuniversal/Kernel/)

          I somehow doubt that it's any better. Just in case it is, I've just cross-compiled and will test..

          EDIT: I dont see any difference :/
          Title: Htc Universal
          Post by: linuxFreq on June 28, 2008, 11:09:27 am
          Hey,

          I know it might be obvious to some but i don't think it's been posted here so:

          There is a bug with the touchscreen. If wifi is enabled in wince at the time of booting into linux the touch screen will not work.

          http://www.handhelds.org/moin/moin.cgi/UniversalBugs (http://www.handhelds.org/moin/moin.cgi/UniversalBugs)

          Hope this helps someone.
          Title: Htc Universal
          Post by: IIZIIm on June 28, 2008, 07:04:39 pm
          Quote
          QUOTE(IIZIIm @ Jun 28 2008, 01:34 AM) *
          I found a kernel source with slightly improved wifi, it downloads 300kb/s for about 2 minutes befor it crashes,
          http://www.linuxtogo.org/~goxboxlive/htcuniversal/Kernel/ (http://www.linuxtogo.org/~goxboxlive/htcuniversal/Kernel/)


          I somehow doubt that it's any better. Just in case it is, I've just cross-compiled and will test..

          EDIT: I dont see any difference :/

          I compared to opie, gpe and  self compiled kernel, they lasted only few seconds. Since titchy uses qtopia kernel i think, i did not know if it is better.
          I installed about 200mb of software with about 5 interruptions. When interrupted i repeated a command and continued, which was quite comfortable.
          Title: Htc Universal
          Post by: webdork on June 29, 2008, 08:18:20 am
          Quote from: IIZIIm
          I compared to opie, gpe and  self compiled kernel, they lasted only few seconds. Since titchy uses qtopia kernel i think, i did not know if it is better.
          I installed about 200mb of software with about 5 interruptions. When interrupted i repeated a command and continued, which was quite comfortable.

          Yes... the 2.6.21-hh20 kernel is a bit better, but not much due to the driver limitation in the dirty driver code. I know for a fact that there is work being done to get the Universal supported in the git kernel as mainline for 2.6.26, once the problems with asic3 and the touchscreen driver are fixed ( a new kernel is LOG overdue for the Uni).

          Hopefully there will be interest enough to get the newest ACX driver from the SourceForge project adapted with the new kernel for the Uni, since there is significant improvement in stability with the new driver.

          We will see.
          Title: Htc Universal
          Post by: kitor on June 29, 2008, 01:45:48 pm
          WiFi was working OK for me.. until one of ifdown commands. Currently when I;m trying to connect with my network i got in console:

          acx: trying to wake up acx
          acx: BUG: no free txdesc left


          or

          wlan1: less than 5 minutes since last radio recalibration, not recalibrating (maybe card is too hot?)

          or something with question about mac filtering.

          My network is open (no hidden SSID, no mac fitering, dynamic DHCP, router is DLink DI614+ if it's neccesary). WinMobile is connecting without problem. So what is wrong under titchy?
          Title: Htc Universal
          Post by: IIZIIm on June 29, 2008, 02:14:28 pm
          Quote
          wlan1: less than 5 minutes since last radio recalibration, not recalibrating (maybe card is too hot?)

          or something with question about mac filtering.

          My network is open (no hidden SSID, no mac fitering, dynamic DHCP, router is DLink DI614+ if it's neccesary). WinMobile is connecting without problem. So what is wrong under titchy?

          driver is unstable, believe it.
           
          you editet /etc/network/interfaces?
          modprobed htcuniversal-acx and acx? rest is general linux topic.
          Title: Htc Universal
          Post by: kitor on June 29, 2008, 02:35:41 pm
          yes, i edited interfaces and modprobed acx'es

          when booting os i have something like : acx: net device wlan0 (...) but device is wlan1 (wlan0 doesn't exist)

          i know that driver is unstable but it was connecting ok, sometimes dropping connection, nothing like this now

          i try to connect to other network tomorrow (i had some problems with my wifi network...)
          Title: Htc Universal
          Post by: datathief on July 04, 2008, 07:54:38 am
          Does anyone have an iptables module?  Would be handy for sharing GPRS internet over a USB connection.
          Title: Htc Universal
          Post by: ShiroiKuma on July 08, 2008, 06:28:25 am
          Firefox 3 (iceweasel) is in the Debian armel unstable repository already. It runs fine.
          Title: Htc Universal
          Post by: ShiroiKuma on July 08, 2008, 11:12:27 am
          Quote from: datathief
          Uploaded a new version of titchy-phone-daemon.  If an MMS message is received, it will be treated as SMS, but the URL of the MMS will be passed to the event.d scripts as $4.  What happens next is someone else's problem, I'm afraid, but I think downloading and decoding a simple picture message should be quite simple.
          Edit: This project (http://python-mms.sourceforge.net/) can apparently encode, decode and send MMS.
          How about sending MMS, at least just text without attachments, since sometimes, esp. when abroad, it's much cheaper to send MMS than SMS?
          Title: Htc Universal
          Post by: ShiroiKuma on July 08, 2008, 11:15:35 am
          Quote from: datathief
          A request for comments:

          I'm planning to add the following to the titchy-phoneui-shiny clock screen:
            ...
            Any comments/requests?
          Enable/disable mute mode while in a call, necessary for business conference calls when you're in a noisy environment.
          Title: Htc Universal
          Post by: datathief on July 16, 2008, 06:36:42 am
          Quote from: ShiroiKuma
          Quote from: datathief
          Uploaded a new version of titchy-phone-daemon.  If an MMS message is received, it will be treated as SMS, but the URL of the MMS will be passed to the event.d scripts as $4.  What happens next is someone else's problem, I'm afraid, but I think downloading and decoding a simple picture message should be quite simple.
          Edit: This project (http://python-mms.sourceforge.net/) can apparently encode, decode and send MMS.
          How about sending MMS, at least just text without attachments, since sometimes, esp. when abroad, it's much cheaper to send MMS than SMS?
          The python-mms project (linked to above) comes with an example script to send an MMS.  I haven't tested it.
          Title: Htc Universal
          Post by: datathief on July 16, 2008, 06:46:05 am
          Quote from: ShiroiKuma
          Quote from: datathief
          A request for comments:

          I'm planning to add the following to the titchy-phoneui-shiny clock screen:
            ...
            Any comments/requests?
          Enable/disable mute mode while in a call, necessary for business conference calls when you're in a noisy environment.
          In what free time I've had, I've been rewriting titchy-phoneui-shiny (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Packages/titchy-phoneui-shiny), to fix some bugs and make it more flexible and themable.  An alternative font can be set in /etc/default/titchy-phoneui-shiny; it uses about 2M less RAM; dialling is easier, too (just pop open the UI with the video-call key, and dial).

          As proof-of-concept, I made a new theme last night: titchy-phoneui-glossy (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Packages/titchy-phoneui-glossy)

          Anyway, the new design should make it much easier to add features like this, which I'll start working on now.
          Title: Htc Universal
          Post by: ShiroiKuma on July 17, 2008, 12:31:59 pm
          Quote from: datathief
          In what free time I've had, I've been rewriting titchy-phoneui-shiny (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Packages/titchy-phoneui-shiny), to fix some bugs and make it more flexible and themable.  An alternative font can be set in /etc/default/titchy-phoneui-shiny; it uses about 2M less RAM; dialling is easier, too (just pop open the UI with the video-call key, and dial).

          As proof-of-concept, I made a new theme last night: titchy-phoneui-glossy (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Packages/titchy-phoneui-glossy)

          Anyway, the new design should make it much easier to add features like this, which I'll start working on now.
          I've just upgraded to it, installed titchy-phoneui-glossy also, and started testing just now...

          It seems there are some problems with the new packages. When the shiny frontend is enabled, it doesn't come up upon the press of the video dial call, a black terminal briefly flashes and then it goes back to wherever I was. Though the shiny dialog does come up when a call comes in.

          Alternatively, the glossy frontend doesn't seem to read in the phonebook, as it's empty, though when a call comes in it uses the caller id to identify it...

          That's my experience so far...
          Title: Htc Universal
          Post by: datathief on July 17, 2008, 06:27:41 pm
          Quote from: ShiroiKuma
          It seems there are some problems with the new packages. When the shiny frontend is enabled, it doesn't come up upon the press of the video dial call, a black terminal briefly flashes and then it goes back to wherever I was. Though the shiny dialog does come up when a call comes in.

          Alternatively, the glossy frontend doesn't seem to read in the phonebook, as it's empty, though when a call comes in it uses the caller id to identify it...

          That's my experience so far...
          I can't reproduce these problems, so I've uploaded a new version with some debugging code.  Add this to /etc/default/titchy-phoneui-shiny:
          Code: [Select]
          DEBUG=TrueInstall the new version, and see if anything is written to /var/log/titchy-phoneui-shiny when a problem occurs.
          Title: Htc Universal
          Post by: ShiroiKuma on July 18, 2008, 03:14:05 pm
          Quote from: datathief
          I can't reproduce these problems, so I've uploaded a new version with some debugging code.  Add this to /etc/default/titchy-phoneui-shiny:
          With just a clean install of your rootfs, change of apt sources list to sid and apt-get dist-upgrade, the phoneui-shiny exhibits the above behavior. This is without the glossy one being installed.
          Quote
          Code: [Select]
          DEBUG=TrueInstall the new version, and see if anything is written to /var/log/titchy-phoneui-shiny when a problem occurs.
          I get:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Traceback (most recent call last):
            File "/usr/bin/titchy-phoneui-shiny", line 317, in <module>
              if not draw(ringing, incall, missedcalls, messages, alerts, phonebook, persist, key):
            File "theme.py", line 144, in draw
              simplemenu(phonebook, (80, 128, 480, 224), 32, (200, 200, 200), (255, 255, 255))
            File "/usr/bin/titchy-phoneui-shiny", line 153, in simplemenu
              y = ((rect[3] - size) / 2) - (s * size)
          TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'[/div]
          Title: Htc Universal
          Post by: ShiroiKuma on July 18, 2008, 03:57:45 pm
          You also must 've done some tweaking, because mpd fails to install properly, doesn't configure properly on installation and then upon boot doesn't start. I get: Starting Music Player Daemon: mpdcan't lookup host "localhost" at line 39

          It cannot be the difference between sid and lenny, since they both use the same mpd version...
          Title: Htc Universal
          Post by: ShiroiKuma on July 19, 2008, 02:50:58 am
          The glossy UI fails for my vcf file with:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Traceback (most recent call last):
            File "/usr/bin/titchy-phoneui-shiny", line 198, in buildphonebook
              result.items[-1].items.append(l.upper().split('TYPE=', 1)[1])
          IndexError: list index out of range[/div]
          Title: Htc Universal
          Post by: ShiroiKuma on July 19, 2008, 02:52:00 am
          Furthermore, I seem to have a serious problem with the latest version: the outside speaker is not enabled again now, so it's almost impossible to hear. It seems the other side has difficulties hearing me too.
          Title: Htc Universal
          Post by: kitor on July 19, 2008, 03:48:03 am
          Any news with WLAN driver?
          Title: Htc Universal
          Post by: ShiroiKuma on July 19, 2008, 03:48:05 am
          Quote from: ShiroiKuma
          You also must 've done some tweaking, because mpd fails to install properly, doesn't configure properly on installation and then upon boot doesn't start. I get: Starting Music Player Daemon: mpdcan't lookup host "localhost" at line 39

          It cannot be the difference between sid and lenny, since they both use the same mpd version...
          This problem seems to go away by adding 127.0.0.1 localhost to /etc/hosts
          Title: Htc Universal
          Post by: datathief on July 19, 2008, 10:38:24 am
          Quote from: ShiroiKuma
          The glossy UI fails for my vcf file with:
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Traceback (most recent call last):
            File "/usr/bin/titchy-phoneui-shiny", line 198, in buildphonebook
              result.items[-1].items.append(l.upper().split('TYPE=', 1)[1])
          IndexError: list index out of range[/div]
          Fixed.  The code assumed that 'TEL' would always come after 'N' or 'FN', which doesn't seem to be true.
          Title: Htc Universal
          Post by: datathief on July 19, 2008, 10:42:37 am
          Quote from: ShiroiKuma
          Furthermore, I seem to have a serious problem with the latest version: the outside speaker is not enabled again now, so it's almost impossible to hear. It seems the other side has difficulties hearing me too.
          Seems to be a problem with titchy-hardware-support.  The init.d script is being executed too soon  -  when the audio driver loads, it resets to the inside speaker.

          It should be fixed if you suspend and resume.  I'll make the necessary changes to the titchy-hardware-support package.
          Title: Htc Universal
          Post by: ShiroiKuma on July 19, 2008, 02:08:45 pm
          Quote from: datathief
          Fixed.  The code assumed that 'TEL' would always come after 'N' or 'FN', which doesn't seem to be true.
          Your glossy frontend is very elegant.

          Few thoughts for potential improvement:

          When viewing the received SMS's, there should be a reply-to-sender option.

          The missed calls browser should not browse just missed calls, but all calls, i.e. made, received, missed in reverse chronological order, with different color - or what may have you - sorting for different types of calls.

          The SMS's should be either threaded, I think preferably, or should also list the sent SMS's.
          Title: Htc Universal
          Post by: datathief on July 21, 2008, 04:00:53 pm
          Quote from: datathief
          Quote from: ShiroiKuma
          Furthermore, I seem to have a serious problem with the latest version: the outside speaker is not enabled again now, so it's almost impossible to hear. It seems the other side has difficulties hearing me too.
          Seems to be a problem with titchy-hardware-support.  The init.d script is being executed too soon  -  when the audio driver loads, it resets to the inside speaker.

          It should be fixed if you suspend and resume.  I'll make the necessary changes to the titchy-hardware-support package.
          New version of titchy-hardware support that fixes this.

          Also, a new version of titchy-phone-daemon, that fixes a minor bug with sent SMS messages (they would sometimes get an extra '@' appended) and adds the long-awaited event type 'smsdelivery' to handle SMS delivery status messages (note that none of the UIs make use of this yet).
          Title: Htc Universal
          Post by: ShiroiKuma on July 21, 2008, 04:41:15 pm
          Quote from: datathief
          adds the long-awaited event type 'smsdelivery' to handle SMS delivery status messages (note that none of the UIs make use of this yet).
          This is indeed long-awaited   When the UI includes it, it will add significantly to the comfort of sending SMSes, as sometimes I have experienced no-send...
          Title: Htc Universal
          Post by: datathief on July 21, 2008, 06:57:37 pm
          Quote from: ShiroiKuma
          Quote from: datathief
          adds the long-awaited event type 'smsdelivery' to handle SMS delivery status messages (note that none of the UIs make use of this yet).
          This is indeed long-awaited   When the UI includes it, it will add significantly to the comfort of sending SMSes, as sometimes I have experienced no-send...
          New versions of titchy-phoneui-shiny and titchy-phoneui-glossy uploaded.  Key repeat works; SMS delivery status messages are displayed (just simple text alerts for now); and you can write messages in the glossy theme.  Don't expect finished, polished features, though...
          Title: Htc Universal
          Post by: ShiroiKuma on July 23, 2008, 11:09:53 am
          Quote from: datathief
          New versions of titchy-phoneui-shiny and titchy-phoneui-glossy uploaded.  Key repeat works; SMS delivery status messages are displayed (just simple text alerts for now); and you can write messages in the glossy theme.  Don't expect finished, polished features, though...
          Is it just my setup, or does the glossy frontend kill mpc playing a tune in a rather nasty way? In my case, when the call comes ringing in, it pauses the tune being played. Once I answer, it kills the playing process - the now playing windows is emptied, then after hangup, I have to restart mpd to get mpc to play again, as I get no answer from localhost on 6600 if I don't restart mpd.
          Title: Htc Universal
          Post by: ShiroiKuma on July 23, 2008, 11:18:41 am
          Further thoughts just as ideas for the console:

          The SMS and calls list should list all historical calls and SMS, not only current ones in the session as is the case.
          They should be threaded.
          They should be reverse-chronologically sorted, with bold or color difference between unread SMS and read ones.

          Perhaps a periodic network check and network status icon, I ofter find that the network is inaccessible due to some crash probably etc. and have to restart titchy-phone-daemon, but some notification of this is desirable.
          Title: Htc Universal
          Post by: datathief on July 23, 2008, 05:24:01 pm
          Quote from: ShiroiKuma
          Is it just my setup, or does the glossy frontend kill mpc playing a tune in a rather nasty way?
          Try adding a new script to /etc/titchy-phone-daemon/event.d to pause mpd  -  that way it will release the audio device, and it won't get killed by the ringtone script.

          Code: [Select]
          #!/bin/dash
          case "$1" in
          ring)
            mpc pause
           ;;
          esac

          (Remember to make it executable).
          Title: Htc Universal
          Post by: datathief on July 23, 2008, 05:33:29 pm
          Quote from: ShiroiKuma
          I ofter find that the network is inaccessible due to some crash probably etc. and have to restart titchy-phone-daemon, but some notification of this is desirable.
          Can you give any more details?  Does titchy-phone-daemon die?  Does running
          Code: [Select]
          titchy-phone-daemon network auto reconnect it to the network?

          Occasionally I've noticed the radio crash (I see 'DEBUGMSG 99' in /var/log/titchy-phone-daemon, and it stops responding). In Windows Mobile, this causes the phone to reboot automatically; I'd like to provide some sort of notification that a reboot is needed rather than do it automatically, or even reset just the radio if there's a way to do that.  That's the only radio-related problem I have, though.
          Title: Htc Universal
          Post by: datathief on July 24, 2008, 06:43:32 am
          Quote from: ShiroiKuma
          Further thoughts just as ideas for the console:

          The SMS and calls list should list all historical calls and SMS, not only current ones in the session as is the case.
          They should be threaded.
          They should be reverse-chronologically sorted, with bold or color difference between unread SMS and read ones.
          Unfortunately I don't have a lot of time to work on this at the moment, and these features aren't a priority.  For me, the UI is meant to show a small amount of information quickly (and attractively    ) and not get in the way of the underlying console.  You're quite welcome to have a go yourself though.

          I would very much like to find the time to write a "proxy" for msmtp and titchy-phone-daemon, so I can use my e-mail client to send, as well as read, SMS.  That will probably be my next project once titchy-phoneui-glossy is a bit more polished.
          Title: Htc Universal
          Post by: domi007 on July 26, 2008, 05:09:43 pm
          Hi guys,
          I got a problem right now: I am locked out from my TitchyMobile:
          At the login prompt I get a title:
          This is an unsecure session

          After that I type
          root
          root
          Then I see for a moment a title: Login successful!
          And the desktop starts to loading, but in that moment I get back to the login prompt. And I can try to log in as many times as I want, but the system throws me back to the login...

          Please help!
          DOMy
          Title: Htc Universal
          Post by: datathief on July 27, 2008, 01:03:15 pm
          Quote from: ShiroiKuma
          Quote from: ShiroiKuma
          but having HiQ video is sorta important I think
          I've lost the ability to play HiQ video on the Uni satisfactorily after a cycle of apt upgrades.

          My experimentation with it has shown a surprising result: I booted into Windows Mobile, and using TCPMP was able to play any and all mpgs with great viewing quality, no choppiness, even the original ones 640x480, not reencoded for smoother playback.

          So the Universal is able to play 640x480 video with no probs.

          The problem then lay on the debian decoding end. mplayer, ffmpeg, totem, nothing seems to currently be able to play the original non-reencoded mpgs, even the reencoded ones are not watchable, it's too slow, choppy...

          But if Windows Mobile can do it, it surely must be possible under Debian. So far playing with it, and searching the web, hasn't indicated to me any good solution.
          I tried to play a video for the first time today.  The best results I got were with a pre-rotated 480x640 video using:
          Code: [Select]
          export SDL_NOMOUSE=1
          export SDL_VIDEODRIVER=fbcon
          mplayer -vo sdl ...
          I can only get around 18fps with no sound  -  sound reduces it to about 12fps.
          Title: Htc Universal
          Post by: datathief on July 27, 2008, 01:04:47 pm
          Quote from: domi007
          Hi guys,
          I got a problem right now: I am locked out from my TitchyMobile:
          At the login prompt I get a title:
          This is an unsecure session

          After that I type
          root
          root
          Then I see for a moment a title: Login successful!
          And the desktop starts to loading, but in that moment I get back to the login prompt. And I can try to log in as many times as I want, but the system throws me back to the login...

          Please help!
          DOMy
          Not an error I've ever seen.  Looks like there are several possible causes (http://www.google.com/search?q=%22this+is+an+unsecure+session%22).
          Title: Htc Universal
          Post by: domi007 on July 29, 2008, 06:33:56 pm
          Quote from: datathief
          Not an error I've ever seen.  Looks like there are several possible causes (http://www.google.com/search?q=%22this+is+an+unsecure+session%22).

          I have tried all of these ideas, but nothing changed.
          If someone has an idea, how can I disable xdm login prompt or solve this issue, please feel free to answer me.

          Thank You!
          DOMy
          Title: Htc Universal
          Post by: ShiroiKuma on July 30, 2008, 04:59:04 am
          Quote from: datathief
          Unfortunately I don't have a lot of time to work on this at the moment, and these features aren't a priority.  For me, the UI is meant to show a small amount of information quickly (and attractively    ) and not get in the way of the underlying console.  You're quite welcome to have a go yourself though.
          I understand what you're saying, in fact I just meant my observations as food for thought, in case you were working on some of those aspects still. I don't have much time to spare currently either, that's why I haven't ventured to pitch in with the above mentioned changes, plus I almost don't use the frontend, just text manipulate the SMS and call logs etc. so that's fine for me...
          Title: Htc Universal
          Post by: ShiroiKuma on August 01, 2008, 01:02:16 pm
          Quote from: datathief
          I can only get around 18fps with no sound  -  sound reduces it to about 12fps.
          How do you measure playback fps?
          Title: Htc Universal
          Post by: wolfy on August 03, 2008, 07:00:42 am
          Hallo
          I`m back
          I have some questions  
          1. I can use KDE, the K Desktop Environment ???, haw to install and set it if is posibile

          2. Haw to change mp3 ringtone in MPD???
          Title: Htc Universal
          Post by: kitor on August 03, 2008, 03:32:32 pm
          because it's debian, try to install task-kde (apt-get install task-kde)
          Title: Htc Universal
          Post by: wolfy on August 05, 2008, 11:56:17 am
          Quote from: kitor
          because it's debian, try to install task-kde (apt-get install task-kde)


          I instaled kde in debian not whith task-kde, just apt-get kde
          I wait for about 500Mb download and finaly space using whose more than 1,1Gb in my SHDC card
          Finaly xdm start but my Uni work verry verry slow, is not good , all KDE aplications whose preinstaled
          Just i want to see it work or not
          Now i revert to XFCE4 desktop environment
          Title: Htc Universal
          Post by: kitor on August 05, 2008, 02:33:48 pm
          But it work? So i'm going to buy uni (i sold my one week ago)
          Title: Htc Universal
          Post by: wolfy on August 05, 2008, 03:11:05 pm
          Quote from: kitor
          But it work? So i'm going to buy uni (i sold my one week ago)
          Yes it work, but KDE is to slow on Uni I think whith 128mb ram upgrade is acceptabile working
          titchy-desktop work fine
          Title: Htc Universal
          Post by: kitor on August 05, 2008, 03:31:25 pm
          If disable some things, don't use all visual effects - it will be cool. I sold my uni because i had something wrong with hardware - it shows me only radio recalibration errors on wifi (on wm worked ok), where other uni on the same card/image was working OK. My friend bought a box of damaged PDAs (about 500 wizards, uni's and magicans) and promised me that he will sold me one working with low prince  
          Title: Htc Universal
          Post by: ShiroiKuma on August 07, 2008, 02:14:46 am
          There is a problem with installing bluez-utils. If you start with the titchy rootfs, or mine, affects both, and install bluez-utils, the Universal fails right after initiating bluetooth services, scrolls by too fast, so don't know exactly the error, however ends with: correcting recursive error, but a reboot is needed.

          Upon reboot, after initializing bluetooth, the same happens.

          I have a backup rootfs where I've already installed an older version of bluez-utils, where there is no such problem.

          It affects both testing and unstable distributions...
          Title: Htc Universal
          Post by: wolfy on August 07, 2008, 04:26:59 am
          Hallo
          I like Debian Linux in my Uni verry much
          WiFi, PPP, USB, X and phone functions work weel
          But...  
          Is some little problems
          ______________________________________________________
          How to edit manual /etc/titchy-phone-daemon/phonebook.vcf ???
          I want to insert my contacts inside to see who call me
          I try more options to insert in phonebook.vcf
          NICKNAME and <NUMBER>
          <NICKNAME, NUMBER> .... etc etc
          I instaled Contacts but i can find *.vcf file to edit
          _______________________________________________________
          After install titchy-phoneui-glossy, every time after restart my Uni, or after installs some packages
          The terminal gime me some errors like
          MPD canot lock up for localhost, port bla bla......
          Maybe MPD is running.......
          Something like this
          This erors apears and after I install something  
          _______________________________________________________
          And, After X Desktop is loaded, the first error is.
          BATTERY EMPTY
          How possibile fix exist, to not appear this message window???
          Or to work correct???
          -------
          Thanks in advance
          Title: Htc Universal
          Post by: datathief on August 07, 2008, 10:44:16 am
          Quote from: wolfy
          How to edit manual /etc/titchy-phone-daemon/phonebook.vcf ???
          vCard file (.vcf) editors are not as common as I thought.  I use "rolo", which is text-based.

          "Contacts", and a few other programs, use the Evolution Data Server.  It may be possible to make the titchy-phoneui phonebook use this.

          Edit: If you're familiar with Python, you can use it to convert the Evolution Data Server data, e.g.:
          Code: [Select]
          import bsddb
          fin = bsddb.hashopen('('.evolution/addressbook/local/system/addressbook.db')
          fout = open('/etc/titchy-phone-daemon/phonebook.vcf', 'w')
          for s in fin.values():
            fout.write(s.replace('\r', '').replace('\x00', '') + '\n\n')
          fout.close()
          fin.close()

          Quote
          After install titchy-phoneui-glossy, every time after restart my Uni, or after installs some packages
          The terminal gime me some errors like
          MPD canot lock up for localhost, port bla bla......
          You need to add the following line to /etc/hosts:
          Code: [Select]
          127.0.0.1 localhost
          Quote
          And, After X Desktop is loaded, the first error is.
          BATTERY EMPTY
          How possibile fix exist, to not appear this message window???
          Or to work correct???
          I don't know  -  I don't use X.
          Title: Htc Universal
          Post by: wolfy on August 07, 2008, 11:30:23 am
          Thank You

          Just 1 more question a have
          Before I installed the rootfs I make whith gparted in my linux machine 3 partitions in my SDHC card
          Part1: ext2, Part2 Linux Swap and part3 FAT for my Win OS
          Now when I`m in Linux every time is need to mount Fat partition to work: #mount /dev/mmcblk0p3 /Myfat
          Haw to made to mount this FAT partition automatic when Debian started?
          Title: Htc Universal
          Post by: datathief on August 07, 2008, 12:02:54 pm
          Quote from: wolfy
          Thank You

          Just 1 more question a have
          Before I installed the rootfs I make whith gparted in my linux machine 3 partitions in my SDHC card
          Part1: ext2, Part2 Linux Swap and part3 FAT for my Win OS
          Now when I`m in Linux every time is need to mount Fat partition to work: #mount /dev/mmcblk0p3 /Myfat
          Haw to made to mount this FAT partition automatic when Debian started?
          Add the following line to /etc/fstab
          Code: [Select]
          /dev/mmcblk0p3 /Myfat auto defaults,noatime 0 0
          Title: Htc Universal
          Post by: ShiroiKuma on August 08, 2008, 03:30:14 am
          Quote from: ShiroiKuma
          There is a problem with installing bluez-utils. If you start with the titchy rootfs, or mine, affects both, and install bluez-utils, the Universal fails right after initiating bluetooth services, scrolls by too fast, so don't know exactly the error, however ends with: correcting recursive error, but a reboot is needed.
          Hmmm... could this issue be related to some hardware damage on the Uni? It seems the SD circuitry or whatever on my Uni has gone bad, i.e. I keep getting I/O read/write errors on the card in Debian now all the time.

          Originally, I thought the card has gone bad. I got two new ones, similar problem.

          Fsck bad sectors check doesn't reveal anything revealing... Is there a good tool to really check and report bad sectors / SD card damage?

          This just to really come to terms if there has been some hardware malfunction in the Uni, which could be linked to this bluez problems? If that's the case, I'll probably have to get a new Uni or the board, but don't wanna do it, if it is in case just SD card issues...
          Title: Htc Universal
          Post by: wolfy on August 08, 2008, 03:50:49 am
          Quote from: ShiroiKuma
          There is a problem with installing bluez-utils. If you start with the titchy rootfs, or mine, affects both, and install bluez-utils, the Universal fails right after initiating bluetooth services, scrolls by too fast, so don't know exactly the error, however ends with: correcting recursive error, but a reboot is needed.

          Mee to, I try to install bluez-utils, but in finally Setting up bluez-utils, crash my uni
          I make Soft Reset, and work fine now, but whithout bluez-utils instaled, not whose setup up
          I try to install GPE-BLUETOOTH
          Install work, but hardware in Uni is not detected
          Title: Htc Universal
          Post by: datathief on August 08, 2008, 05:46:19 am
          Quote from: ShiroiKuma
          There is a problem with installing bluez-utils. If you start with the titchy rootfs, or mine, affects both, and install bluez-utils, the Universal fails right after initiating bluetooth services, scrolls by too fast, so don't know exactly the error, however ends with: correcting recursive error, but a reboot is needed.

          Upon reboot, after initializing bluetooth, the same happens.

          I have a backup rootfs where I've already installed an older version of bluez-utils, where there is no such problem.

          It affects both testing and unstable distributions...
          Do you have a copy of the working bluez-utils deb?  I could change its version number so it gets installed instead of the broken one, and host it in my repository, while we figure out what's wrong.
          Title: Htc Universal
          Post by: ShiroiKuma on August 08, 2008, 06:32:17 am
          Quote from: datathief
          Do you have a copy of the working bluez-utils deb?  I could change its version number so it gets installed instead of the broken one, and host it in my repository, while we figure out what's wrong.
          Well, this was my first line of thinking. However, maybe it's induced by other factors, like other packages, because:

          From a working rootfs backup where I have bluez-utils installed, I tried to manually install them in your clean rootfs - don't have the package, but first installed all the dependencies, then copied all the bluez-utils files in their place, ran the preinst script, then ran the postinst script, and it fails in the same way...

          Like I said, can't catch the errors, but right after hcid initialization I think, a slew or rfcomm or what have you associated errors fly by and that's it, the machine is stuck.

          So, since another user has the same issues, it's not motherboard failure related I assume.

          Do you have an idea what could be behind this SD I/O read/write problems of mine? It's driving me nuts, I can't use Linux on the Universal now...

          Thought it was machine hardware generated, since even the Windows Mobile couldn't access the card, which has the first partition as fat32, which they could before, though the card was readable fine on a PC both under GNU/Linux and under XP. I used some tool though under XP that is supposed to format the card exactly to SD guideline specifications and now the Windows Mobile reads the card.

          So should I maybe try just to keep it fat32 formatted and put the Debian into a file and run it off of it, instead of creating an ext2 partition? Would this be beneficial? I'm just curious why this now when for a couple of months didn't have these issues at all...
          Title: Htc Universal
          Post by: datathief on August 08, 2008, 09:35:56 am
          Quote from: ShiroiKuma
          Quote from: datathief
          Do you have a copy of the working bluez-utils deb?  I could change its version number so it gets installed instead of the broken one, and host it in my repository, while we figure out what's wrong.
          Well, this was my first line of thinking. However, maybe it's induced by other factors, like other packages, because:

          From a working rootfs backup where I have bluez-utils installed, I tried to manually install them in your clean rootfs - don't have the package, but first installed all the dependencies, then copied all the bluez-utils files in their place, ran the preinst script, then ran the postinst script, and it fails in the same way...

          Like I said, can't catch the errors, but right after hcid initialization I think, a slew or rfcomm or what have you associated errors fly by and that's it, the machine is stuck.

          So, since another user has the same issues, it's not motherboard failure related I assume.
          I'll try installing the newest bluez-utils on mine, see if it happens to me.

          Quote
          Do you have an idea what could be behind this SD I/O read/write problems of mine? It's driving me nuts, I can't use Linux on the Universal now...

          Thought it was machine hardware generated, since even the Windows Mobile couldn't access the card, which has the first partition as fat32, which they could before, though the card was readable fine on a PC both under GNU/Linux and under XP. I used some tool though under XP that is supposed to format the card exactly to SD guideline specifications and now the Windows Mobile reads the card.

          So should I maybe try just to keep it fat32 formatted and put the Debian into a file and run it off of it, instead of creating an ext2 partition? Would this be beneficial? I'm just curious why this now when for a couple of months didn't have these issues at all...
          Because of the wear-levelling, SD cards can be a bit tricky.  You can write the same data to the same place twice, and it will get put in a different physical location on the card each time.  That makes it very difficult to track down problems.

          For the same reason, an error on one partition can affect other partitions on the same card.

          Do you have the ramdisk image (http://www.linuxtogo.org/~htcpxa/htcuniversal/images/ramdisk/) installed?  Have you tried formatting the card for Linux using the phone itself?
          Title: Htc Universal
          Post by: datathief on August 08, 2008, 01:22:54 pm
          Bluetooth seems to work fine if you use the Silicon Wave driver instead of the Texas Instruments one.  Change 'texas' to 'swave' in /etc/bluetooth/uart.
          Title: Htc Universal
          Post by: ShiroiKuma on August 12, 2008, 04:28:37 am
          I seem to have an issue with general audio loudness, i.e. when playing audio or video, it seems to be significantly less loud than when playing the same files under WM. I seem to remember having a similar issue earlier on, then tweaking something, and it disappearing, though am not sure about it.

          The incoming call ring is also not very loud, albeit having RINGTONEVOLUME set at 100 in /etc/default/titchy-phoneui-base

          Any ideas?
          Title: Htc Universal
          Post by: datathief on August 12, 2008, 11:32:37 am
          Quote from: ShiroiKuma
          I seem to have an issue with general audio loudness, i.e. when playing audio or video, it seems to be significantly less loud than when playing the same files under WM. I seem to remember having a similar issue earlier on, then tweaking something, and it disappearing, though am not sure about it.

          The incoming call ring is also not very loud, albeit having RINGTONEVOLUME set at 100 in /etc/default/titchy-phoneui-base

          Any ideas?

          I don't know of anything that would affect the volume.  Run alsamixer at the console and check all the controls.
          Title: Htc Universal
          Post by: linuxFreq on August 13, 2008, 01:02:08 pm
          Hey,

          What is hibernate or suspend like?
          In the project that i am doing i'd like to be able to hibernate the htc so that it could sit for a couple of days without a power supply and wake up in the same state as it was before....

          Is this possible?

          Also, when you hold the power button and the display appears with the clock and the date, how is this graphic produced? I was under the impression to get a gui like that you needed X...

          Thanks.
          Title: Htc Universal
          Post by: ShiroiKuma on August 13, 2008, 01:42:43 pm
          Quote from: datathief
          I don't know of anything that would affect the volume.  Run alsamixer at the console and check all the controls.
          Doh...

          Of course, the volume was set to 80 there...  
          Title: Htc Universal
          Post by: ShiroiKuma on August 15, 2008, 01:14:40 pm
          I've updated to the latest titchy-phoneui-glossy, very elegant.

          However, it kills the mplayer in a rather nasty way if receive a call while playing the video. It affects -vo fbdev, don't know if other -vo options elicit the same behavior, however since fbdev is the fastest for playing video, it's a problem here.

          When a call comes in, the video freezes on the screen, the ringtone plays, however the glossy frontend doesn't come up. You can accept the call, talk, and hang up, but then there is no way to get back to the console, or redraw the screen. I could suspend. Upon resume, the glossy frontend comes up, but it doesn't react to keypresses, and I didn't figure out a way to get back to the console, ESC doesn't help...
          Title: Htc Universal
          Post by: ShiroiKuma on August 19, 2008, 04:40:49 am
          Further to dialing from titchy-phoneui:

          It currently doesn't enable the advanced dialing functionalities, don't know if that's called this, but basically, for instance if you use a prepaid card, then for example to check the level of credit you just dial *104*# hit the dial key as if dialing a call, the phone queries the network for info and comes back with your remaining credit, in one of the networks that you use...

          There are many other advanced dialing codes like this.

          This currently doesn't work and would be desirable, as the only way to do it now, is to switch back to WM.
          Title: Htc Universal
          Post by: ShiroiKuma on August 20, 2008, 05:36:34 am
          Quote from: datathief
          Do you have the ramdisk image (http://www.linuxtogo.org/~htcpxa/htcuniversal/images/ramdisk/) installed?  Have you tried formatting the card for Linux using the phone itself?
          I'm trying to do that, however not succeeding with this ramdisk, I have it installed, when it boots, I try to mkfs the card however there is no /dev/mmcblk0 node only a /dev/mmc/ directory that's empty. I've googled around tried mkfs'ing on /dev/mmc/disc however that doesn't work, so not sure how to progress.
          Title: Htc Universal
          Post by: kitor on August 20, 2008, 06:32:01 pm
          Hey

          Other question - have we got support for SDHC cards?
          Title: Htc Universal
          Post by: ShiroiKuma on August 21, 2008, 05:45:33 am
          Quote from: kitor
          Other question - have we got support for SDHC cards?
          Yes.
          Title: Htc Universal
          Post by: datathief on August 27, 2008, 05:33:36 am
          Quote from: ShiroiKuma
          Further to dialing from titchy-phoneui:

          It currently doesn't enable the advanced dialing functionalities, don't know if that's called this, but basically, for instance if you use a prepaid card, then for example to check the level of credit you just dial *104*# hit the dial key as if dialing a call, the phone queries the network for info and comes back with your remaining credit, in one of the networks that you use...

          There are many other advanced dialing codes like this.

          This currently doesn't work and would be desirable, as the only way to do it now, is to switch back to WM.
          As far as I can tell, the following should give some kind of result:
          Code: [Select]
          titchy-phone-daemon atcmd 'at+cusd=1,"*104*#",15'The command returns immediately, so you'll need to check the log after a few seconds for the result.
          Code: [Select]
          tail /var/log/titchy-phone-daemonI get "+CUSD: 5"; I don't know what that means.  If you get something more useful, I can add this functionality to the daemon.
          Title: Htc Universal
          Post by: ShiroiKuma on August 27, 2008, 05:53:30 am
          I currently have my Uni in Germany for a 128MB memory upgrade, but will try this once I get it back and report with the results.
          Title: Htc Universal
          Post by: domi007 on August 27, 2008, 12:06:03 pm
          Quote from: ShiroiKuma
          I currently have my Uni in Germany for a 128MB memory upgrade, but will try this once I get it back and report with the results.

          Great decision!
          Title: Htc Universal
          Post by: wolfy on August 28, 2008, 04:05:46 am
          Quote from: ShiroiKuma
          I currently have my Uni in Germany for a 128MB memory upgrade, but will try this once I get it back and report with the results.
          I want to upgrade my Uni to 128 mb ram
          Give me one thousand and several details
          Where in Germany sent you ???
          How have proceeded with the dispatch of ???
          And the final tariff  ???
          Title: Htc Universal
          Post by: ShiroiKuma on August 28, 2008, 10:36:01 am
          I sent it to www.srsgmbh.de They were very responsive, I just prediscussed with them on the phone, then mailed the Uni in with a letter requesting the memory upgrade and my contact info. It took them 4 days to finish with the upgrade. At the end of the upgrade process, I received an email with payment details. You can pay by bank transfer or via Paypal. It cost EUR 131.50, including postage back to my country. I should receive the unit within a couple of days now. That's all.  
          Title: Htc Universal
          Post by: wolfy on August 28, 2008, 12:06:10 pm
          OK Thx
          I will try to contact they and send my uni to
          I think will work more beter debian with 128Mb ram  
          Title: Htc Universal
          Post by: ShiroiKuma on September 08, 2008, 11:28:41 am
          So I got my upgraded Universal back, and seems it's not so easy...

          When the Universal boots first into Windows Mobile, it reports only 48 Megs of memory, (What the?...) In the Device info then it shows 128M RAM, but in memory info only 48M. This I've seen at xda-developers.com. So it'd seem consistent with it.

          However now I'm having problems booting Linux getting it to recognize the extra memory. By itself it just reports 64M still.

          I got so far as to pass memsize=0x8000000 to haret before booting linux, but still 64M. Haven't found any ref of running linux on the Universal with 128M.

          If anyone is running it on an memory-upgrade Universal, can you please share the options you have to pass to Haret for it to boot with the full extended memory?
          Title: Htc Universal
          Post by: Thorsten on September 08, 2008, 03:35:45 pm
          Hi ShiroiKuma

          I have no memory upgrade jet, but I made some pre research... So I have two, probably stupid, questions:
          Did you install a 128M aware Windows ROM?
          Did you try the test program for the memory size?
          (http://forum.xda-developers.com/showthread.php?t=286861&page=5)

          Perhaps the author of that software might help, he claims in his profile to have a 128M Uni
          (http://forum.xda-developers.com/member.php?u=224595)

          Please let me know how things are going....

          Greetings

                   Thorsten
          Title: Htc Universal
          Post by: wolfy on September 08, 2008, 03:38:22 pm
          I stay in a moment with 64Mb, May I studied how they are running and benefits from 128Mb, I don`t want to give money for nothing
          For WM 128mb know that Page Pool should be changed to 0 to work correctly
          I think you know that
          But if you don`t help anything to Linux is not a win in this upgrade

          Probably there is a solution for this  
          Title: Htc Universal
          Post by: ShiroiKuma on September 08, 2008, 03:50:09 pm
          Quote from: Thorsten
          Did you install a 128M aware Windows ROM?
          They reflashed the Universal, with what should be an acceptable ROM. Don't know though, am gonna call them tomorrow.

          Quote
          Did you try the test program for the memory size?
          (http://forum.xda-developers.com/showthread.php?t=286861&page=5)
          I think it's useless, as the author says right below, that his prog is not working correctly...

          I'm hoping it's just a wrong ROM, in which case a reflash should fix it, OTOH from what I've read, if you don't flash to a ROM supporting 128M then the Universal shouldn't boot. So it's looking complicated. Anyhow something is definitely wrong with my current setup...
          Title: Htc Universal
          Post by: IIZIIm on September 08, 2008, 06:55:25 pm
          Quote
          I got so far as to pass memsize=0x8000000 to haret before booting linux, but still 64M. Haven't found any ref of running linux on the Universal with 128M.


          I used to have an entry mem=64M in startup.txt, maybe you just try mem=128M like in Blueangel"s startup.txt :http://www.linuxtogo.org/~htcpxa/htcblueangel/GPEphone/startup.txt

          Can you enter cat /proc/meminfo?
          Title: Htc Universal
          Post by: ShiroiKuma on September 09, 2008, 05:59:36 am
          I think mem=128M should do it, actually...

          There's something wrong with the upgrade, as the 128M I was seeing before is flash size not RAM, so something's not right... I talked with SRS and am sending the unit back in today for them to check what's wrong.
          Title: Htc Universal
          Post by: ShiroiKuma on September 11, 2008, 06:31:56 am
          SRS confirmed they flashed the wrong ROM onto the device and that's why the 128MB wasn't working. Should be fine now. I should be receiving it beginning next week, and will report how linux works with 128MB. Hopefully, using 128MB should be no prob under linux, however no one has confirmed it still on the Universal, so hopefully there will be no more unwanted surprises.
          Title: Htc Universal
          Post by: ShiroiKuma on September 16, 2008, 11:24:58 am
          So I got the Universal back, with the correct ROM reflashed. It has 128MB memory now, works much better. Linux starts fine, without the mem=128M argument added, no changes to startup.txt necessary, finds 128MB of memory. X works great without swap now, it's definitely much better.

          One problem though with suspend. When you suspend, there is no way to wake the Universal up, it doesn't respond to the power key. I saw a mention somewhere, specifically focusing on this, i.e. that expanding to 128MB, you will need to modify something, so it doesn't have the suspend-resume problem. Am trying to find the reference now, maybe it was on xda-developers. If anyone has any hints, I'd appreciate the help.
          Title: Htc Universal
          Post by: ShiroiKuma on September 16, 2008, 01:47:17 pm
          OK, just found the reference on xda-developers. It's a comment by cr2, reading:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']The only problem will pop up at resume, because the
          HTC IPL sets the PXA memory controller as if there were 64MB RAM.
          But it can be easily fixed by resetting them in the CPU resume function.[/div]
          Anyone know how to do this?
          Title: Htc Universal
          Post by: ShiroiKuma on September 17, 2008, 04:34:35 am
          So, I have run various tests, but can't get the device to resume from suspend. Allthough cr2 in the above post says it's easy to fix, I don't know how to do this, if it entails editing the IPL or what. So unless we figure this out, currently 128MB is unuseable on the Universal for Linux.

          The device resumes properly, when I start haret with mem=64M so am using that for now... (
          Title: Htc Universal
          Post by: Thorsten on September 17, 2008, 06:04:06 am
          Quote from: ShiroiKuma
          OK, just found the reference on xda-developers. It's a comment by cr2, reading:[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']The only problem will pop up at resume, because the
          HTC IPL sets the PXA memory controller as if there were 64MB RAM.
          But it can be easily fixed by resetting them in the CPU resume function.[/div]
          Anyone know how to do this?

          I lack a bit of the context, but I suspect he talks about a fix in the linux kernel. Can you post the link?

          Can you write something about the positive effect of the upgrade? My primary problem wit my universal is that is is horrible slow on linux. For my use case (remote linux server administration, nagios) I need VPN, ssh and a webbrowser (grafical, not lynx). But already opening a terminal window is very slow, a webbrowser is only usable with lots of passion...

          Can you tell me how much speed improvements you got?

          Are there other positive effects?

          Does any body know if the kernel is still in active development? I can only find a quite old  2.6.21-hh20.

          Greetings

                   Thorsten
          Title: Htc Universal
          Post by: ShiroiKuma on September 17, 2008, 08:35:57 am
          Quote from: Thorsten
          I lack a bit of the context, but I suspect he talks about a fix in the linux kernel. Can you post the link?
          The link is http://forum.xda-developers.com/showpost.p...mp;postcount=95 (http://forum.xda-developers.com/showpost.php?p=1613823&postcount=95)

          I've inspected the htc-universal specifics of the linux kernel, and couldn't identify anything. I think he meant editing the IPL, which is the phone bootloader, which however seems strange, since if that was the prob, the phone wouldn't come out of suspend under WM, or maybe WM doesn't really do a deep suspend like Linux does.

          Quote
          Can you write something about the positive effect of the upgrade? My primary problem wit my universal is that is is horrible slow on linux. For my use case (remote linux server administration, nagios) I need VPN, ssh and a webbrowser (grafical, not lynx). But already opening a terminal window is very slow, a webbrowser is only usable with lots of passion...
          Not much I can say, since I need to use the phone and without suspend it's useless. So I'm not using the 128MB now, until I figure out how to make it resume...
          Title: Htc Universal
          Post by: Thorsten on September 18, 2008, 04:53:55 am
          Hi, I contacted cr2, and he confirmed the need of a kernel patch. I hope I find some time in the next days to have a look on it.

          greetings
                 
                    Thorsten
          Title: Htc Universal
          Post by: ShiroiKuma on September 18, 2008, 08:58:06 am
          In fact, I got a response from him at the same time. He requested feedback to haret's "dump pxa27x" command. I'll be posting soon. Hopefully this'll enable us to use these 128...
          Title: Htc Universal
          Post by: ShiroiKuma on September 18, 2008, 10:37:15 am
          I've just posted the output of the command cr2 requested at http://forum.xda-developers.com/showpost.p...;postcount=2085 (http://forum.xda-developers.com/showpost.php?p=2659112&postcount=2085)
          Title: Htc Universal
          Post by: ShiroiKuma on September 21, 2008, 11:09:43 am
          Quote from: Thorsten
          Hi, I contacted cr2, and he confirmed the need of a kernel patch. I hope I find some time in the next days to have a look on it.

          greetings
                 
                    Thorsten
          Do you have an idea of what and where needs to be patched? Over at xda-developers, cr2 hinted that haret's dump pxa27x command output should be compared between a 128MB and a 64MB Universal, to give an idea of the patch presumably. I've posted the 128MB Universal output at http://forum.xda-developers.com/showpost.p...;postcount=2088 (http://forum.xda-developers.com/showpost.php?p=2670700&postcount=2088)

          However, I don't have the 64MB output. Could you post it? Or could someone else post the haret's dump pxa27x command's output here? Instructions on how to capture the output easily on a Universal I've posted at: http://sumoudou.org/index.php?cmd=%E7%9B%B...PC%20connection (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ALogging%20haret%20output%20directly%20on%20the%20phone%20without%20a%20PC%20connection)
          Title: Htc Universal
          Post by: Thorsten on September 22, 2008, 05:15:23 am
          Quote from: ShiroiKuma
          Do you have an idea of what and where needs to be patched? Over at xda-developers, cr2 hinted that haret's dump pxa27x command output should be compared between a 128MB and a 64MB Universal, to give an idea of the patch presumably. I've posted the 128MB Universal output at http://forum.xda-developers.com/showpost.p...;postcount=2088 (http://forum.xda-developers.com/showpost.php?p=2670700&postcount=2088)

          However, I don't have the 64MB output. Could you post it? Or could someone else post the haret's dump pxa27x command's output here? Instructions on how to capture the output easily on a Universal I've posted at: http://sumoudou.org/index.php?cmd=%E7%9B%B...PC%20connection (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ALogging%20haret%20output%20directly%20on%20the%20phone%20without%20a%20PC%20connection)

          Yes, I have a, at least rough, idea where to patch. I the pxa specific code are some parts for the power management.  These are not so big, and it seems easy to find, where the resume is done.
          You start your dump with "1st part:" , is there a 2nd missing? I did not see the memory registers on a quick view.
           
          I'll make a 64MB dump today, and post it for comparsion.

          greetings

          Thorsten
          Title: Htc Universal
          Post by: Thorsten on September 22, 2008, 06:14:26 am
          Quote from: Thorsten
          You start your dump with "1st part:" , is there a 2nd missing? I did not see the memory registers on a quick view.
           
          I'll make a 64MB dump today, and post it for comparsion.

          Sorry, I now found your 2nd part, and also the post with the comparsion log....
          Title: Htc Universal
          Post by: ShiroiKuma on September 22, 2008, 02:53:30 pm
          Quote from: Thorsten
          Yes, I have a, at least rough, idea where to patch. I the pxa specific code are some parts for the power management.  These are not so big, and it seems easy to find, where the resume is done.
          I'll check further, so far haven't found anything that would indicate to me the right place to patch. In http://forum.xda-developers.com/showpost.p...;postcount=2094 (http://forum.xda-developers.com/showpost.php?p=2676510&postcount=2094) cr2 indicates patching the IPL, which is the bootloader, but for that I have no idea, so hopefully patching the kernel will prove to be the way...
          Title: Htc Universal
          Post by: Batuss on September 23, 2008, 03:18:39 am
          Hello i've just installed titchy, upgrade it(xserwer-titchy.deb...and stuff) and when i start x server(xfce4 or IceWM) it show me somthing like this:

          Quote
          #startX
          Hostname: host name lookup failure
          xauth (argv):1: bad display name "titchy:0" in "list" command
          xauth (stdin):1: bad display name "titchy:0" in "add" command
          /etc/X11/xint/xserverrc: line 5: usr/bin/x11/X; No such file or directory
          /etc/X11/xint/xserverrc: line 5: exec:i usr/bin/x11/X; Cannot execute: No such file or directory

          when i try to type startxfce4 it shows me the same result

          Can  you help me ?
          Title: Htc Universal
          Post by: ShiroiKuma on September 23, 2008, 03:37:40 am
          Quote from: Batuss
          /etc/X11/xint/xserverrc: line 5: usr/bin/x11/X; No such file or directory
          /etc/X11/xint/xserverrc: line 5: exec:i usr/bin/x11/X; Cannot execute: No such file or directory
          [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']ln -s /opt/kdrive/X /usr/bin/[/div]
          Title: Htc Universal
          Post by: ernia on September 27, 2008, 05:05:18 am
          I'm not able to download the rootfs following http://wiki.neilandtheresa.co.uk/Titchy_Li...stalling_Debian (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Installing_Debian) instructions
          I run jigdo-lite from my debian etch and all seems to go ok, but when i untar it it complains about an error and exit.
          the last file correctly extracted is ./basedebs/debian/pool/main/s/sed/sed_4.1.5-6_armel.deb
          the dimension of titchy-rootfs.tar is 17,9 Mb and not 45 Mb as it should be.
          i've searched the topic but i couldn't find something about this problem.
          i've tried from a windows emulated system too and i ended with a titchy-rootfs.tar of the same size, 18324 kb, so it shouldn't be something wrong with my system.
          any advice or a link from where download the rootfs image?
          sorry about being a newbye like that and about my broken english.
          Title: Htc Universal
          Post by: ShiroiKuma on September 27, 2008, 07:06:41 am
          You can get the full rootfs, with mplayer for Universal, and X installed at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20the%20full%20Debian%20GNU/Linux%20image%20on%20the%20Universal)
          Title: Htc Universal
          Post by: ernia on September 27, 2008, 07:32:27 am
          Quote from: ShiroiKuma
          You can get the full rootfs, with mplayer for Universal, and X installed at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20the%20full%20Debian%20GNU/Linux%20image%20on%20the%20Universal)
          thanks a lot, i'm downloading the image  
          Title: Htc Universal
          Post by: ernia on September 27, 2008, 11:51:58 am
          ok, i got it, debian boots and i'm happy    
          when i will be able to find the slash in my qwerty keyboard i will be more happy  
          again, thanks a lot for giving me a copy of your sistem
          Title: Htc Universal
          Post by: ernia on September 28, 2008, 04:00:44 am
          mmmm, when i try to get usb network i can ifup usb0 in titchy but i can't in my debian etch.
          lsusb can't give me an output about the uni and dmesg says:

          [  116.732011] usb 1-4: new full speed USB device using ohci_hcd and address 6
          [  116.912007] usb 1-4: device descriptor read/64, error -62
          [  117.196007] usb 1-4: device descriptor read/64, error -62
          [  117.476009] usb 1-4: new full speed USB device using ohci_hcd and address 7
          [  117.656008] usb 1-4: device descriptor read/64, error -62
          [  117.940007] usb 1-4: device descriptor read/64, error -62
          [  118.220009] usb 1-4: new full speed USB device using ohci_hcd and address 8
          [  118.628006] usb 1-4: device not accepting address 8, error -62
          [  118.804009] usb 1-4: new full speed USB device using ohci_hcd and address 9
          [  119.212007] usb 1-4: device not accepting address 9, error -62
          [  119.212022] hub 1-0:1.0: unable to enumerate USB device on port 4

          seems that it's related to my pc, but i can't understand where to look for.
          any help?
          Title: Htc Universal
          Post by: ShiroiKuma on September 28, 2008, 06:31:43 am
          Follow these steps: http://sumoudou.org/index.php?cmd=%E7%9B%B...SB%20connection (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AConnect%20Universal%20to%20the%20internet%20via%20a%20desktop%20PC%20USB%20connection)

          and report all the errors you get.
          Title: Htc Universal
          Post by: ernia on September 28, 2008, 05:00:42 pm
          Quote from: ShiroiKuma
          Follow these steps: http://sumoudou.org/index.php?cmd=%E7%9B%B...SB%20connection (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AConnect%20Universal%20to%20the%20internet%20via%20a%20desktop%20PC%20USB%20connection)

          and report all the errors you get.

          i can't "aptitude update" and "aptitude install titchy network settings" because i can't get the internet.

          ifconfig usb0 192.168.0.1
          SIOCSIFADDR: No such device
          usb0: ERROR while getting interface flags: No such device

          this is the output of ifconfig usb0 192.168.0.1, i think it is related with the dmesg output that i post previously.
          by the way, i have the same messages with two different kernels in debian and arch linux in my pc, and in arch linux in another pc.

          i can ifup usb0 on the universal manually adding usb0 in /etc/network/interfaces.

          i can't make a ppp connection with the string i've found in previous post, so i have a debian with no net, no luck!

          i'm thinking to put myself in a better position (like installing packages from titchy repository) using qemu as you advice at this link:

          http://sumoudou.org/index.php?cmd=%E7%9B%B...r%20on%20a%20PC (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ARunning%20Universal%20Debian%20GNU/Linux%20in%20an%20emulator%20on%20a%20PC)

          let me know if i'm doing something really dumb. thanks for your answers.
          Title: Htc Universal
          Post by: ernia on September 29, 2008, 11:53:32 am
          [  177.676009] usb 1-6: new full speed USB device using ohci_hcd and address 6
          [  177.900038] usb 1-6: configuration #1 chosen from 2 choices
          [  177.925687] usb 1-6: New USB device found, idVendor=0525, idProduct=a4a2
          [  177.925692] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
          [  177.925695] usb 1-6: Product: RNDIS/Ethernet Gadget
          [  177.925697] usb 1-6: Manufacturer: Linux 2.6.21-hh20/pxa27x_udc
          [  178.026135] usb0: register 'cdc_subset' at usb-0000:00:0b.0-6, Linux Device, 4a:2b:9a:c7:a1:f2
          [  178.027821] usbcore: registered new interface driver cdc_subset
          [  178.034001] usbcore: registered new interface driver cdc_ether
          [  178.038576] usbcore: registered new interface driver zaurus

          It seems like that i can have the usb network device of the uni recognized only if titchy has been booted while uni was connected via usb to a pc.
          Tested on two different pc, also booting titchy while connected to one pc and then connected to the other one.
          Seems an issue related to titchy and not to my systems, could you make some tests about it and see if this happens to you too?
          Title: Htc Universal
          Post by: kroonen on September 30, 2008, 04:40:13 pm
          I'm trying to install the debian image to my htc.

          If I use the jigdo-lite http://debian.neilandtheresa.co.uk/titchy-rootfs.jigdo (http://debian.neilandtheresa.co.uk/titchy-rootfs.jigdo) the tar file is only 25mb

          Found 8 of the 8 files required by the template Successfully created `titchy-rootfs.tar' ----------------------------------------------------------------- Finished! The fact that you got this far is a strong indication that `titchy-rootfs.tar' was generated correctly. I will perform an additional, final check, which you can interrupt safely with Ctrl-C if you do not want to wait. OK: Checksums match, image is good!


          When untar it this error happens

          /extradebs/debian/pool/ ./extradebs/debian/pool/main/
          ./extradebs/debian/pool/main/a/ ./extradebs/debian/pool/main/a/alsa-utils/
          ./extradebs/debian/pool/main/a/alsa-utils/alsa-utils_1.0.16-2_armel.deb
          ./extradebs/debian/pool/main/a/apmd/
           ./extradebs/debian/pool/main/a/apmd/apmd_3.2.2-10_armel.deb
          ./extradebs/debian/pool/main/a/apmd/libapm1_3.2.2-10_armel.deb
          ./extradebs/debian/pool/main/a/apt/
          ./extradebs/debian/pool/main/a/apt/apt_0.7.14_armel.deb tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now

          any idea is the download image corrupt???

          I tried 3 times kind regards
          Richard
          Title: Htc Universal
          Post by: ernia on October 01, 2008, 03:48:00 am
          same as me, i don't know nothing about jigdo-lite and i can't explain myself why things are going this way.
          here : http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20Debian%20GNU/Linux%20on%20the%20Universal)
          you can find an old debian lenny based rootfs (i think originally provided by Datachief) and a fattest debian sid based rootfs with a working x-server provided by ShiroIkuma.
          I think i must read a lot to understand what exactly to do to have a system as i want (i would prefer debian lenny with fluxbox and a phone-management app running under x) and if i can somehow contribute, not being a developer.
          Thanks to both Datachief and ShiroIkuma.
          Title: Htc Universal
          Post by: datathief on October 01, 2008, 04:36:04 am
          Quote from: ernia
          I'm not able to download the rootfs following http://wiki.neilandtheresa.co.uk/Titchy_Li...stalling_Debian (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Installing_Debian) instructions
          I run jigdo-lite from my debian etch and all seems to go ok, but when i untar it it complains about an error and exit.
          the last file correctly extracted is ./basedebs/debian/pool/main/s/sed/sed_4.1.5-6_armel.deb
          the dimension of titchy-rootfs.tar is 17,9 Mb and not 45 Mb as it should be.
          i've searched the topic but i couldn't find something about this problem.
          i've tried from a windows emulated system too and i ended with a titchy-rootfs.tar of the same size, 18324 kb, so it shouldn't be something wrong with my system.
          any advice or a link from where download the rootfs image?
          sorry about being a newbye like that and about my broken english.
          It looks like the nightly process that rebuilds the image was running out of disk space.  I've moved it to a bigger disk, and a new image is being built now.
          Title: Htc Universal
          Post by: ShiroiKuma on October 01, 2008, 06:18:41 am
          Quote from: datathief
          As far as I can tell, the following should give some kind of result:
          Code: [Select]
          titchy-phone-daemon atcmd 'at+cusd=1,"*104*#",15'I get "+CUSD: 5"; I don't know what that means.  If you get something more useful, I can add this functionality to the daemon.
          I get: [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']+CUSD: 0,"XXXXXXXXXXXXXXXXXXXXXXXXXXXX some hex text",15[/div]
          So it seems, it's responding with the credit remaining and it's coding the answer, however doesn't ring any bells as far as deciphering is concerned...
          Title: Htc Universal
          Post by: ShiroiKuma on October 01, 2008, 06:20:45 am
          Further to titchy-phoneui-shiny and titchy-phone-daemon, call-waiting doesn't work. I.e. when you are on the line and get another call, you hear the ring in the background as you should, but there is no way to switch calls...

          More importantly, the missed calls log doesn't record the call coming in while you're on the line, so you can't determine who it was that called you.
          Title: Htc Universal
          Post by: ernia on October 01, 2008, 07:19:19 am
          Quote from: datathief
          It looks like the nightly process that rebuilds the image was running out of disk space.  I've moved it to a bigger disk, and a new image is being built now.
          now it works, thanks  
          Title: Htc Universal
          Post by: kroonen on October 01, 2008, 03:42:52 pm
          Well I downloaded it, booted from haret run in and now it does the following

          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.
          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.

          This message repeats every 5 seconds. I waited an hour and still this appears.. Is this normal???
          Title: Htc Universal
          Post by: ShiroiKuma on October 01, 2008, 04:07:57 pm
          Your card is messed up. mkfs.ext2 it again and try once more. It happened to me too a couple of times.

          If it doesn't go through, throw the card in the garbage and buy a new one.
          Title: Htc Universal
          Post by: kroonen on October 01, 2008, 04:42:24 pm
          Strange I used 2 sd cards and both react the sae a 256mb and a 2 gb.

          I ude and sd adapter coul that be the problem??
          Title: Htc Universal
          Post by: datathief on October 01, 2008, 07:10:58 pm
          Quote from: kroonen
          Well I downloaded it, booted from haret run in and now it does the following

          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.
          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.

          This message repeats every 5 seconds. I waited an hour and still this appears.. Is this normal???
          We might be able to locate the problem and find a way around it.  If you mount the card on your PC, which of the following files exist?
          bin/busybox
          usr/bin/dpkg
          sbin/runlevel
          Title: Htc Universal
          Post by: ernia on October 02, 2008, 01:01:39 am
          Quote from: kroonen
          Well I downloaded it, booted from haret run in and now it does the following

          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.
          Booting Debian GNU/Linux...
          Unpacking base packages. This will take a while, but only needs to be done once.

          This message repeats every 5 seconds. I waited an hour and still this appears.. Is this normal???
          again, same problem as me, we could share an account on this forum  
          i've tried with two sdcards too.

          @Datachief
          usr/bin/dpkg and sbin/runlevel are missing in both of the generated images (and on sdcard too).
          yesterday's image md5sum: fd6ea69a2cccc89f7771fa4c2580ec76
          today's image md5su: ae62e00379490d555471e41c28695391

          thanks
          Title: Htc Universal
          Post by: kroonen on October 02, 2008, 02:03:51 am
          @datachief

          Whe it hangs i took the sd and mounted

          bin/busybox is on the sd
          usr/bin/dpkg is on the sd
          sbin/runlevel isn't there

          Richard
          Title: Htc Universal
          Post by: ShiroiKuma on October 02, 2008, 05:04:02 am
          You can use my rootfs found at http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20the%20full%20Debian%20GNU/Linux%20image%20on%20the%20Universal) if you don't want to mess with its extraction etc.

          It's based on the datathief's rootfs, changed to sid dist, expanded, set-up, updated as of 2008-05-07 and X all set up and ready to go.

          I have also created other rootfses, one just expanded bare datathiefs, others with different apps set up, all updated to the current status etc. I'll be posting them later, but for now, the one above runs fine. You just need to aptitude full-upgrade.
          Title: Htc Universal
          Post by: ernia on October 02, 2008, 06:55:33 am
          @datathief
          sorry, i must have checked bin and not usr/bin for dpkg, as kroonen said the only missing thing is sbin/runlevel
          Title: Htc Universal
          Post by: kroonen on October 02, 2008, 01:05:14 pm
          @ShiroiKuma

          The image you gives wor, but i want to connect to internet somehow, to aptitude full-upgrade and install the titchy tools. But no interface usb0 or wifi is possible you need the tichy-netwowk-settings and hardware??? Is this not included in the image????

          Also touchscreen in X only works when he goes to sleep and wake up??
          Title: Htc Universal
          Post by: ernia on October 02, 2008, 01:43:52 pm
          Quote from: kroonen
          @ShiroiKuma

          The image you gives wor, but i want to connect to internet somehow, to aptitude full-upgrade and install the titchy tools. But no interface usb0 or wifi is possible you need the tichy-netwowk-settings and hardware??? Is this not included in the image????

          Also touchscreen in X only works when he goes to sleep and wake up??
          you could try this  http://sumoudou.org/index.php?cmd=%E7%9B%B...SB%20connection (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AConnect%20Universal%20to%20the%20internet%20via%20a%20desktop%20PC%20USB%20connection) ,
          but instead of the aptitude part write

          allow hotplug usb0
          iface usb0 inet static
             address 192.168.0.2
             netmask 255.255.255.0
             network 192.168.0.0
             broadcast 192.168.0.255
             gateway 192.168.0.1

          in the /etc/network/interfaces on the universal.
          boot titchy while the universal is already connected to the pc or it could be possible that the pc will not load the correct modules, see my posts in the previous page.
          please, can you test if you get the cdc_subset, cdc_ether and zaurus modules loaded if titchy has been booted while uni was disconnected from pc?

          i did not understand what's the matter with x, could you explain your problem in a better way?
          Title: Htc Universal
          Post by: kroonen on October 03, 2008, 03:25:20 pm
          Well i did try it with modifying the /etc/network/interfaces

          Then if i do ifconfig usb0 up, he comes up and in wodows also but i don't get an ip or something if I do an ifconfig. Link there is so he is up. 1 time it worked dbut after a reboot no luck any more.
          I tried booting connected to my desktop but nothing.. any ideas?
          Title: Htc Universal
          Post by: kroonen on October 03, 2008, 03:38:24 pm
          I found it and ifup usb0 and it works.

          The xserver is still strange. When the first time X is start it, tochscreen isn't working, but if the thc goes into sleep (apm) aftere that i start, the touchscreen works..
          Title: Htc Universal
          Post by: ShiroiKuma on October 07, 2008, 01:59:58 pm
          So, the discussion at xda-developers resulted in a successful patch of the kernel, and it now suspends/resumes the 128mb RAM upgraded Universal fine.

          After a day of tests, I can state that the 128MB upgrade is a significant improvement. I can now run emacs alongside conkeror (significantly improved firefox/iceweasel) without swap, and it runs snappily, great.

          No need for swap, and specifically because of this it's snappy, as running with swap due to slow access to the SD card is excruciatingly slow.

          I have noticed a significantly greater responsiveness of the Universal and it's really great.

          You can get the compiled kernel for 128MB at: http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AInstalling%20the%20full%20Debian%20GNU/Linux%20image%20on%20the%20Universal) where I've put instructions.
          Title: Htc Universal
          Post by: Thorsten on October 08, 2008, 06:56:53 am
          Hi all,
          is it possible, to you the touch screen as mouse in DirectFB applications, or with gpm? I tried some things, but without any success. I was not even able to find the xorg.conf, to find out how X handles the mouse. The only thing I figured out is that /dev/input/event0 is the device of magic.
          My intention is to use a web browser without X (links2 in graphic mode) to save resources.

          greetings

          Thorsten
          Title: Htc Universal
          Post by: domi007 on October 11, 2008, 08:27:41 am
          Hi,
          I got a new problem with the rootfs from ShiroiKuma:
          I have installed the titchy pacakges (network-settings, hardware etc.), and th phone now isn't able to come back from suspend!
          I have to reset it, but the reset causes a mess up in the filesystem.
          Has anyone an idea?

          Another problem:
          I can't connect to the internet through USB! I have this problem constantly: last time datathief helped me a lot, and we had fixed it, but now, it appears again.
          I have installed the titchy-network-setings package, but still have the problem:
          Windows says: USB_network: This connection has limited or no connectivity.
          Windows was not able to renew the IP-adress of this connection
          ???

          DOMy
          Title: Htc Universal
          Post by: ernia on October 12, 2008, 02:11:02 am
          i've been away from home for some days, and now i'm tryng again to install debian retrieving the rootfs with jigdo-lite, without success.
          could somebody share a bare lenny rootfs to start playing? i would like to already have the titchy-linux stuff installed on it.
          thanks
          Title: Htc Universal
          Post by: domi007 on October 12, 2008, 05:33:24 am
          Quote from: ernia
          i've been away from home for some days, and now i'm tryng again to install debian retrieving the rootfs with jigdo-lite, without success.
          could somebody share a bare lenny rootfs to start playing? i would like to already have the titchy-linux stuff installed on it.
          thanks

          You can try the rotfs from shiroikuma (with xdm, programs, and some titchy packages):
          Information:
          http://shiroikuma.com/index.php?cmd=%E7%9B...9962cfea3003c7d (http://shiroikuma.com/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9ARunning%20Debian%20GNU/Linux%20on%20HTC%20Universal&PHPSESSID=1cfae2511c2f1c3ca9962cfea3003c7d)

          Download link:
          http://shiroikuma.com/uni/shiroikuma-unive...9962cfea3003c7d (http://shiroikuma.com/uni/shiroikuma-universal-rootfs-20080507.tar.bz2?PHPSESSID=1cfae2511c2f1c3ca9962cfea3003c7d)

          Hope, this helps!
          DOMy
          Title: Htc Universal
          Post by: domi007 on October 12, 2008, 09:55:34 am
          Is there now work to fix the WiFi driver unstabilities?
          I'm thinking about to compile the latest acx driver, but leave the htcuniversal-acx module without any modifications. Perhaps, it will be better, perhaps not.
          Stay tuned, i will come with the result.

          DOMy

          EDIT:
          Of course i was not able to find the kernel headers for our kernel (2.6.21-hh20).
          so, the stable wifi connection will be only a dream for the next years
          Title: Htc Universal
          Post by: ernia on October 12, 2008, 02:16:41 pm
          Quote from: domi007
          Is there now work to fix the WiFi driver unstabilities?
          I'm thinking about to compile the latest acx driver, but leave the htcuniversal-acx module without any modifications. Perhaps, it will be better, perhaps not.
          Stay tuned, i will come with the result.

          DOMy

          EDIT:
          Of course i was not able to find the kernel headers for our kernel (2.6.21-hh20).
          so, the stable wifi connection will be only a dream for the next years

          you should find kernel's sources here: http://wiki.neilandtheresa.co.uk/Titchy_Linux/Source (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Source)

          i'm not able to install titchy packages, seems like they're not in the repository.
          i add 'deb http://debian.neilandtheresa.co.uk/ (http://debian.neilandtheresa.co.uk/) titchy/' in /etc/apt/sources.list but when i do 'apt-cache search titchy' i can't find nothing.
          any advice?
          Title: Htc Universal
          Post by: kitor on October 13, 2008, 10:31:06 am
          apt-get update?
          Title: Htc Universal
          Post by: domi007 on October 13, 2008, 04:45:09 pm
          Quote from: ernia
          you should find kernel's sources here: http://wiki.neilandtheresa.co.uk/Titchy_Linux/Source (http://wiki.neilandtheresa.co.uk/Titchy_Linux/Source)

          i'm not able to install titchy packages, seems like they're not in the repository.
          i add 'deb http://debian.neilandtheresa.co.uk/ (http://debian.neilandtheresa.co.uk/) titchy/' in /etc/apt/sources.list but when i do 'apt-cache search titchy' i can't find nothing.
          any advice?

          Thank you very much!
          I will give it a try!

          Does anyone has an idea for the suspend problem (the device doesn"t wake up, even if i push the power button)?

          DOMy
          Title: Htc Universal
          Post by: ernia on October 14, 2008, 02:43:50 am
          Quote from: kitor
          apt-get update?
          done. are you able to install titchy packages? the repository is up?
          Title: Htc Universal
          Post by: kitor on October 14, 2008, 01:11:19 pm
          I don't know - I'm waiting for my new universal, but first time I tried linux it helped me...
          Title: Htc Universal
          Post by: domi007 on October 15, 2008, 01:14:27 pm
          Hi,
          I hvae found something new:
          Console message, during boot:
          Starting suspend-on-idle daemon....Unknown HZ value!

          I think, therefore is there a problem with suspend wake-up.

          DOMy
          Title: Htc Universal
          Post by: kitor on October 18, 2008, 11:48:08 am
          Is it any way to use Audacious? Version from repo give me only Segmentation fault...

          [edit]
          Ok, I found working XMMS so audacious isn't neccesary...

          Other question - I have XFCE rootfs made by my friend. But holding stylus doesn't work as a right mouse button - is it possible to get this functionality?
          Title: Htc Universal
          Post by: domi007 on October 19, 2008, 01:02:49 pm
          Quote from: kitor
          Is it any way to use Audacious? Version from repo give me only Segmentation fault...

          [edit]
          Ok, I found working XMMS so audacious isn't neccesary...

          Other question - I have XFCE rootfs made by my friend. But holding stylus doesn't work as a right mouse button - is it possible to get this functionality?

          I think, you should edit somehow the touchscreen driver, and than it will support this function also.

          BTW:
          I am copying rigth now the latest acx sources and the kernel headers to my SD card, and than later I will compile it, if there won't be any errors!
          Title: Htc Universal
          Post by: kitor on October 19, 2008, 04:23:57 pm
          Ok, now i know that right mouse button is hold CTRL (Messaging) button on keyboard and tap... or use xmonobut ;-)
          Title: Htc Universal
          Post by: datathief on October 30, 2008, 09:25:02 am
          Quote from: ernia
          Quote from: kitor
          apt-get update?
          done. are you able to install titchy packages? the repository is up?

          It looks like a couple of things have broken while I've been away.  The repository should be working now.
          Title: Htc Universal
          Post by: datathief on October 30, 2008, 09:29:13 am
          Quote from: Thorsten
          Hi all,
          is it possible, to you the touch screen as mouse in DirectFB applications, or with gpm? I tried some things, but without any success. I was not even able to find the xorg.conf, to find out how X handles the mouse. The only thing I figured out is that /dev/input/event0 is the device of magic.
          My intention is to use a web browser without X (links2 in graphic mode) to save resources.

          greetings

          Thorsten

          This may be what you need (or it might not work at all  -  I haven't tried it):

          http://osdir.com/ml/handhelds.openzaurus.d...2/msg00001.html (http://osdir.com/ml/handhelds.openzaurus.devel/2005-12/msg00001.html)
          Title: Htc Universal
          Post by: ShiroiKuma on October 31, 2008, 04:56:11 am
          I'm experiencing strange behavior with titchy-phoneui-glossy.

          If I send an SMS using the commandline with titchy-phone-daemon, it is sent, and then the glossy UI pops up for the confirmation, but the confirmation is not displayed in alerts.

          If I send an SMS from the phonebook section of the glossy UI, it kills titchy-phone-daemon and doesn't send anything. What could the problem be?
          Title: Htc Universal
          Post by: datathief on November 04, 2008, 05:06:27 am
          Quote from: ShiroiKuma
          I'm experiencing strange behavior with titchy-phoneui-glossy.

          If I send an SMS using the commandline with titchy-phone-daemon, it is sent, and then the glossy UI pops up for the confirmation, but the confirmation is not displayed in alerts.

          If I send an SMS from the phonebook section of the glossy UI, it kills titchy-phone-daemon and doesn't send anything. What could the problem be?

          Message statuses are displayed next to the sent messages (lit blue arrow is pending, unlit blue arrow is delivered, red arrow is failed).

          Is there an error message in /var/log/titchy-phoneui-shiny after the crash?
          Title: Htc Universal
          Post by: ShiroiKuma on November 04, 2008, 09:17:24 am
          Quote from: datathief
          Message statuses are displayed next to the sent messages (lit blue arrow is pending, unlit blue arrow is delivered, red arrow is failed).
          Oh well, so then this would partly explain the absence. Since I send SMS's from my Emacs UI, in the keitai package that I've put together, the sent message is not displayed in the glossy UI, as you've made it to only show messages that are sent from the UI. So no message, no message status next to it.

          Wouldn't it make more sense, since you already do logging of all calls and SMS's to log files, for the UI to not only show new messages and calls etc. that it records since it comes on. But to actually read the logs and display the full history, of calls, SMS's etc?
          Quote
          Is there an error message in /var/log/titchy-phoneui-shiny after the crash?
          I'll check it.
          Title: Htc Universal
          Post by: ShiroiKuma on November 16, 2008, 04:56:16 pm
          I'd like to remap the OK key as right shift, but can't figure out to do this. Have tried
          Code: [Select]
          keycode 0x43 = Shiftin /etc/console/boottime.kmap.gz and
          Code: [Select]
          keycode 75 = Shift_R
          add Shift = Shift_R
          in .xmodmaprc and various combinations of the two, but the OK doesn't work as shift in these two instances. At best it only shifts a couple of keys and that's it.

          Anyone know how I can achieve the remap?
          Title: Htc Universal
          Post by: kitor on January 01, 2009, 03:30:02 pm
          Not all about linux, but I found interesting info about USB host in PXA27x devices. Here it is:
          http://hhtinker.blogspot.com/2008/10/usb-h...n-treo-650.html (http://hhtinker.blogspot.com/2008/10/usb-host-on-treo-650.html)
          In shortcut, if we were lucky, we get USB host on sync port of our Uni's (only on Linux). But somebody must check it, I currently didn't have uni...
          Title: Htc Universal
          Post by: alge on January 04, 2009, 05:11:46 pm
          Hi,

          after a while a tried today to start again with my titchy installation from scratch, as in my first try half a year ago the phone applications did not work.

          I was wondering a little bit that the initial installation using /sbin/titchybootstrap2 and /etc/rcS.d/S99titchybootstrap3 did not work. I fixed the calls to dpkg there, added some missing debs (net-utils, sed, module-init-tools if I remember all) and mainly installed everything manually. Afterwards I recognized that this may be due to the fact, that the jigdo file and apt/sources.list refer to debian testing, which was something different last year.

          Well, I managed to setup a basic Debian testing now, with usb networking and ssh.

          But now I cannot find any titchy-* package. The Packages file from debian.neilandtheresa.co.uk is empty. Has anyone mirrors of these packages or even the source packages to rebuild them?

          Some posts above contain already some questions regarding the repository not beeing accessible, is this still the same?

          Thanks

          Albrecht
          Title: Htc Universal
          Post by: domi007 on January 13, 2009, 12:31:03 pm
          Hi guys,
          Sorry, because my post doesn't connect to this topic, but it is related with the Universal, so:
          I am trying to run Android on the Universal. But if I compile the linux_2.6.25_Android for the universal (using the htcuniversal_defconf, which i get from the net) it could be compiled without any problem, but on the PDA Haret says jumping to kernel, and then nothing happens....
          If i use the kernel from shiroikuma (zImage.128MB) and the normal rootfs, grabbed from the emulator i get a Segmentation fault when it tries to run the init script of the Android.
          I think, the kernel which i use, is uncompatible with the Android.

          Has someone any idea? Is there any reason, why my kernel doesn't boot, but shiroikuma's does?

          Thanks, and sorry for my off-topic post
          DOMy
          Title: Htc Universal
          Post by: p3t3r on January 26, 2009, 08:49:36 am
          @domi007

          I am no expert on such things (as I am no computer scientist), but as I have some experience with running Linux on devices like the Universal (Universal and Motorola A780/E680) I would like to ask you whether you applied some patches for HTC Universal to your kernel, as it isn't (again, AFAIK) supported by stock mainline linux. Bad thing is that (as you will know) the latest kernel for HTC Universal on handhelds.org is still 2.6.21-hh20, which won't work with ANDROID, unless you apply the patches.
          Here (http://markmail.org/message/fn7dl4sdhlebsmwh?q=2.6.21-hh20+android&page=1&refer=eqt7skhcop5vwy7g) is a ML post about patching 2.6.21-hh20 for BlueAngel for Android (please keep in mind that the Android version running is an older beta, AFAIR 0.8).

          Hope that I could help you a little bit,

           p3t3r

          (Please feel free to contact me when you have ANDROID running on your Universal, I am keen on that, too  )
          Title: Htc Universal
          Post by: domi007 on February 24, 2009, 02:59:26 pm
          With Android:

          So far, so good:
          http://forum.xda-developers.com/showpost.p...mp;postcount=31 (http://forum.xda-developers.com/showpost.php?p=3315435&postcount=31)

          Video:
          http://www.youtube.com/watch?v=OYb2nZyC4nA (http://www.youtube.com/watch?v=OYb2nZyC4nA)

          DOMy
          Title: Htc Universal
          Post by: ShiroiKuma on March 31, 2009, 07:52:08 am
          USB connection with a Mac

          How do you use USB networking when connection the HTC Universal to Mac OS X?

          I.e. in Linux after plugging in the USB cable, you'd on the PC[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']ifconfig usb0 192.168.0.1
          echo 1 > /proc/sys/net/ipv4/ip_forward
          iptables -A FORWARD -j ACCEPT
          iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
          [/div]

          However on a Mac, I don't have the usb0 device after connecting the Universal with a cable, I've looked through dmesg and the contents of /dev/ and there doesn't seem to be a usb device, though it's no hardware problem, my Mac is brand new and USB flashdisks work when plugged in.

          So where's the device to ifconfig?
          Title: Htc Universal
          Post by: Sam Liddicott on April 03, 2009, 04:06:35 am
          Quote from: kitor
          Not all about linux, but I found interesting info about USB host in PXA27x devices. Here it is:
          http://hhtinker.blogspot.com/2008/10/usb-h...n-treo-650.html (http://hhtinker.blogspot.com/2008/10/usb-host-on-treo-650.html)
          In shortcut, if we were lucky, we get USB host on sync port of our Uni's (only on Linux). But somebody must check it, I currently didn't have uni...

          Thats great news - it makes me think of this: http://www.dvd.co.uk/Hw/Kingston-DataTrave...2GB/product.htm (http://www.dvd.co.uk/Hw/Kingston-DataTraveler-120-USB-flash-drive-32-GB-Hi-Speed-USB/DT120_32GB/product.htm)

          Big fat daddy storage for my universal!
          Title: Htc Universal
          Post by: Sam Liddicott on April 03, 2009, 05:01:16 am
          I've been given another black HTC Universal (O2 XDA exec).

          It has a dent/kink in the touch-screen (not the LCD) and the display has been rotated too many times so that the display cable has snapped, but carphone warehouse say they can fix both these for £45.00

          I'm short on cash to pay for a 128M upgrde, so I'm interested in doing a deal where somebody can have this in exchange for giving me the 128MB upgrade on my Universal.

          Anyone interested - is it a fair deal? (I guess it is the same as swapping both these for one that has been upgraded?)
          Title: Htc Universal
          Post by: Sam Liddicott on April 15, 2009, 12:07:44 pm
          Quote from: Sam Liddicott
          I've been given another black HTC Universal (O2 XDA exec).

          It has a dent/kink in the touch-screen (not the LCD) and the display has been rotated too many times so that the display cable has snapped, but carphone warehouse say they can fix both these for £45.00

          I'm short on cash to pay for a 128M upgrde, so I'm interested in doing a deal where somebody can have this in exchange for giving me the 128MB upgrade on my Universal.

          Anyone interested - is it a fair deal? (I guess it is the same as swapping both these for one that has been upgraded?)

          bah! I was a bit slow, CPW have stopped repairing the Universal just recenly, so I'm going to HTC for it. I'm trying to get them to do the RAM too - I might get lucky.

          Sam
          Title: Htc Universal
          Post by: Sam Liddicott on May 08, 2009, 12:24:35 pm
          Is it game over then?
          Title: Htc Universal
          Post by: ShiroiKuma on June 16, 2009, 10:33:31 am
          Quote from: ShiroiKuma
          Quote from: datathief
          As far as I can tell, the following should give some kind of result:
          Code: [Select]
          titchy-phone-daemon atcmd 'at+cusd=1,"*104*#",15'I get "+CUSD: 5"; I don't know what that means.  If you get something more useful, I can add this functionality to the daemon.
          I get: [div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']+CUSD: 0,"XXXXXXXXXXXXXXXXXXXXXXXXXXXX some hex text",15[/div]
          So it seems, it's responding with the credit remaining and it's coding the answer, however doesn't ring any bells as far as deciphering is concerned...
          It's the ASCII text response, hex encoded. To decipher you need to pass it through xxd -p -r, full instructions at http://sumoudou.org/index.php?cmd=%E7%9B%B...0in%20GNU/Linux (http://sumoudou.org/index.php?cmd=%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AQuerying%20mobile%20credit%20balance%20in%20GNU/Linux)
          Title: Htc Universal
          Post by: Foxdie on November 07, 2009, 06:48:31 pm
          FINALLY my HTC Universal has a purpose

          This thread contains a wealth of information, it's taken 3 days to read through it all, but man was it worth it.

          Thanks to Neil and everyone else who has contributed to this thread, let's keep it going
          Title: Htc Universal
          Post by: ShiroiKuma on November 14, 2009, 05:08:11 am
          Quote from: Foxdie
          FINALLY my HTC Universal has a purpose
          Not for long, I'm afraid.

          I've been running debian on the Uni for a long time now, but the biggest problem is the overall slowness of the system, there's no way you can play movies satisfactorily for instance, and emacs runs, so this is a godsend, but still if you have lot of stuff in .emacs, the startup takes ages etc.

          The Nokia N900 has, it seems, started shipping to stores now, and it's gonna be reaching the endmarket somewhere around the beginning of December - and that's gonna be GNU/Linux for your mobile phone! If you'll wish for Debian, you'll run it from chroot no prob. It should be, judging by the videos, super fast, so another dimension for mobile GNU/Linux it seems.

          I think I'll put my Uni to rest right when I get this new Nokia in the mail.

          Granted, the keyboard on it sucks bigtime, compared with the Uni, but just the keyboard won't be reason enough to hold back and stick with the Uni, I think...
          Title: Htc Universal
          Post by: Foxdie on November 14, 2009, 05:58:11 am
          Quote from: ShiroiKuma
          Quote from: Foxdie
          FINALLY my HTC Universal has a purpose
          Not for long, I'm afraid.

          I've been running debian on the Uni for a long time now, but the biggest problem is the overall slowness of the system, there's no way you can play movies satisfactorily for instance, and emacs runs, so this is a godsend, but still if you have lot of stuff in .emacs, the startup takes ages etc.

          The Nokia N900 has, it seems, started shipping to stores now, and it's gonna be reaching the endmarket somewhere around the beginning of December - and that's gonna be GNU/Linux for your mobile phone! If you'll wish for Debian, you'll run it from chroot no prob. It should be, judging by the videos, super fast, so another dimension for mobile GNU/Linux it seems.

          I think I'll put my Uni to rest right when I get this new Nokia in the mail.

          Granted, the keyboard on it sucks bigtime, compared with the Uni, but just the keyboard won't be reason enough to hold back and stick with the Uni, I think...

          Well, my Uni has been sat in a drawer for years not doing anything, I feel with this it has a purpose again, something I can script / program and easily work with, FAR easier than WinMo.

          I plan to use it in my car for GPS tracking and listening to online radio stations, one of my peeves about listening to streams in WinMo was that if you went through a patchy coverage area, the phone would disconnect UTMS and sometimes fail to reconnect, I could write a crontab to check the connection every 60 seconds and reset it, as well as then restart the music stream

          Just one of the many uses I'm going to have for it
          Title: Htc Universal
          Post by: ShiroiKuma on November 19, 2009, 05:11:52 pm
          Quote from: Foxdie
          I plan to use it in my car for GPS tracking and listening to online radio stations, one of my peeves about listening to streams in WinMo was that if you went through a patchy coverage area, the phone would disconnect UTMS and sometimes fail to reconnect, I could write a crontab to check the connection every 60 seconds and reset it, as well as then restart the music stream
          Which programs are you gonna use for these two on the Uni?
          Title: Htc Universal
          Post by: Foxdie on November 20, 2009, 04:06:04 am
          Well, for listening to streams, I currently use mplayer as that was already installed, it works well but the volume seems to be way too low, even when I set mplayer to 100% by repeatedly mashing the asterix (*) key..

          I plan on writing a Perl script to automate this, just a simple while-loop that'll call mplayer, then if mplayer dies, bring down ppp0, wait 5 seconds, bring it back up again, wait another 5 seconds and then relaunch mplayer.

          As for the tracking, I've installed bluez-utils and wrote a perl script that does the following;

          1. Open the GPS device using the rfcomm util
          2. Open the serial device step 1 creates; /dev/rfcomm0
          3. While-loop through the data, whenever it receives a $GPRMC line, store this in a variable
          4. As part of the above while-loop there is a check on the last time it submitted the content to an external API via a HTTP GET / POST request, it will do it once every 5 seconds (configurable).

          To do this I've had to apt-get update the system, and then install the following CPAN modules;

          * Device::SerialPort
          * HTTP::Request

          It's still a work-in-progress, it works fine but the coordinates appear offset slightly, I think it may be due to me just shifting the decimal place on the DDMM.MMMM request, maybe I need to use another formula.. heh

          I'll post up all my work once I'm satisfied it's bug-free

          Ps. Installing CPAN modules with Perl is a complete nightmare, you have to create at least a 128MB Swap File and it's PAINFULLY slow, it took 45 minutes to install HTTP::Request, I think I'll release a gzipped tarball of my filesystem once it's done.