Author Topic: Htc Universal  (Read 711875 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #150 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.
« Last Edit: April 28, 2008, 03:37:54 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #151 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.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #152 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.

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #153 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.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #154 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.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #155 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?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

p3t3r

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #156 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.

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #157 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:
  • More user-friendly errors from running htcunid sendsms etc.
  • Logging modem output to /var/log, for easier debugging.
  • A new command to return the network status (searching, etc.), signal strength, and GPRS availability.
  • A new command to return a list of available networks (with the help of http://en.wikipedia.org/wiki/Mobile_Network_Code ).
  • A new command to register to a specific network, or unregister (flight mode).
  • Options to set the validity period and receipt request for SMS.
  • Handling of message receipt and voicemail notification messages.
  • Turn off all unsolicited messages from the modem (except incoming calls and SMS) so the phone doesn't wake up unnecessarily.
This could take a while...

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #158 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
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #159 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.

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #160 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/ 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 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/ 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
« Last Edit: April 28, 2008, 11:35:47 am by datathief »

p3t3r

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #161 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

p3t3r

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #162 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!
« Last Edit: April 28, 2008, 04:57:22 pm by p3t3r »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #163 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.
« Last Edit: April 29, 2008, 03:18:00 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #164 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?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze