Author Topic: Htc Universal  (Read 711651 times)

datathief

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

datathief

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

ShiroiKuma

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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #303 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!
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #304 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 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.....
« Last Edit: May 11, 2008, 12:19:27 am by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #305 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....   ).
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #306 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.
« Last Edit: May 11, 2008, 04:47:51 am by datathief »

Cagnulein

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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #308 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!

 
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #309 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!
« Last Edit: May 11, 2008, 03:36:43 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

datathief

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

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.

Sam Liddicott

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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #312 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.
[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 #313 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?
« Last Edit: May 13, 2008, 05:36:09 am by datathief »

ShiroiKuma

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