Help - Search - Members - Calendar
Full Version: Htc Universal
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Debian
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
datathief
QUOTE(ArchiMark @ May 10 2008, 02:42 PM) *
cool.gif 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. wink.gif
datathief
QUOTE(Sam Liddicott @ May 8 2008, 09:11 PM) *
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
Re suspend, is it my impression, or have you modified the scripts, so that it doesn't suspend while on AC?
ArchiMark
QUOTE(ArchiMark @ May 10 2008, 03:42 PM) *
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.... sad.gif

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
usb0:  kevent0 may have been dropped
usb0:  kevent1 may have been dropped


So, wondering either

A) What to do get USB Networking working?

or

cool.gif 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(Cagnulein @ May 10 2008, 08:25 AM) *
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
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
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
# 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!








ArchiMark
QUOTE(ArchiMark @ May 10 2008, 02:42 PM) *
cool.gif 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(datathief @ May 10 2008, 02:20 PM) *
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!!!

tongue.gif


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




QUOTE(datathief @ May 10 2008, 02:20 PM) *
It's in my rootfs. wink.gif


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

rolleyes.gif

Thanks!

UPDATE

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

Apt-get works now.....

laugh.gif

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.....
ArchiMark
QUOTE(ArchiMark @ May 10 2008, 04:42 PM) *
A) What to do get USB Networking working?

QUOTE(ShiroiKuma @ May 10 2008, 08:44 AM) *
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.... wink.gif ).
datathief
QUOTE(ShiroiKuma @ May 10 2008, 10:31 PM) *
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.
Cagnulein
QUOTE(ArchiMark @ May 11 2008, 02:24 AM) *
CODE
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
QUOTE(ArchiMark @ May 11 2008, 02:24 AM) *
CODE
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(Cagnulein @ May 11 2008, 01:56 AM) *
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!

smile.gif

ArchiMark
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....
wink.gif



Thanks!
datathief
QUOTE(ArchiMark @ May 11 2008, 03:06 PM) *
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
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
QUOTE(datathief @ May 2 2008, 02:12 PM) *
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.
datathief
QUOTE(ShiroiKuma @ May 13 2008, 08:10 AM) *
QUOTE(datathief @ May 2 2008, 02:12 PM) *
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?
ShiroiKuma
QUOTE(datathief @ May 13 2008, 11:05 AM) *
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.
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
Chero
QUOTE(Sam Liddicott @ May 13 2008, 11:16 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


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

LDFLAGS="-export-dynamic"

it helped me out with gnocky.
Chero.
datathief
I've added titchy-phoneui-base and titchy-phoneui-console to the Titchy repository.

QUOTE(ShiroiKuma @ May 13 2008, 09:49 AM) *
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...
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.
ShiroiKuma
QUOTE(datathief @ May 14 2008, 11:36 AM) *
I've added titchy-phoneui-base and 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
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
datathief
QUOTE(ShiroiKuma @ May 14 2008, 12:10 PM) *
QUOTE(datathief @ May 14 2008, 11:36 AM) *
I've added titchy-phoneui-base and 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
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.
Sam Liddicott
QUOTE(Cagnulein @ May 14 2008, 12:22 PM) *
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
Sam Liddicott
QUOTE(Chero @ May 14 2008, 07:56 AM) *
QUOTE(Sam Liddicott @ May 13 2008, 11:16 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


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
ShiroiKuma
QUOTE(datathief @ May 2 2008, 03:16 PM) *
QUOTE(ShiroiKuma @ May 2 2008, 12:23 PM) *
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. sad.gif

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
datathief
QUOTE(datathief @ May 14 2008, 09:36 AM) *
I've added titchy-phoneui-base and titchy-phoneui-console to the Titchy repository.

QUOTE(ShiroiKuma @ May 13 2008, 09:49 AM) *
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.
datathief
QUOTE(Sam Liddicott @ May 14 2008, 08:24 PM) *
QUOTE(Cagnulein @ May 14 2008, 12:22 PM) *
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.
Sam Liddicott
QUOTE(datathief @ May 15 2008, 10:14 AM) *
QUOTE(Sam Liddicott @ May 14 2008, 08:24 PM) *
QUOTE(Cagnulein @ May 14 2008, 12:22 PM) *
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.
Sam Liddicott
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....
datathief
QUOTE(Sam Liddicott @ May 15 2008, 10:40 AM) *
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
grep htcuniversal_resume /var/log/syslog

You 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.
Sam Liddicott
Just for general interest;
here's my /etc/network/interfaces entry from my desktop:

CODE
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
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.
Sam Liddicott
QUOTE(datathief @ May 15 2008, 01:00 PM) *
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
Sam Liddicott
QUOTE(Sam Liddicott @ May 15 2008, 04:37 PM) *
QUOTE(datathief @ May 15 2008, 01:00 PM) *
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
webdork
QUOTE(Sam Liddicott @ May 15 2008, 08:27 AM) *
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 smile.gif
ShiroiKuma
QUOTE(webdork @ May 16 2008, 01:05 AM) *
QUOTE(Sam Liddicott @ May 15 2008, 08:27 AM) *
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 smile.gif

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.
datathief
QUOTE(ShiroiKuma @ May 16 2008, 08:30 AM) *
QUOTE(webdork @ May 16 2008, 01:05 AM) *
QUOTE(Sam Liddicott @ May 15 2008, 08:27 AM) *
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 smile.gif

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. wink.gif
webdork
QUOTE(datathief @ May 16 2008, 03:01 AM) *
I think there's still hope. wink.gif


Where there is a will there is a way smile.gif

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!!!!)
datathief
QUOTE(Sam Liddicott @ May 15 2008, 09:23 PM) *
QUOTE(Sam Liddicott @ May 15 2008, 04:37 PM) *
QUOTE(datathief @ May 15 2008, 01:00 PM) *
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.
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?
datathief
QUOTE(ShiroiKuma @ May 17 2008, 08:26 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?

I've just set /etc/ppp/apm.conf to
CODE
exit 0


... which is obviously not the "right way" to do it...
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.
ShiroiKuma
QUOTE(Elleo @ May 18 2008, 07:21 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.

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.
datathief
QUOTE(Elleo @ May 18 2008, 05:21 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.

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.
ShiroiKuma
QUOTE(datathief @ May 15 2008, 02:00 PM) *
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
ShiroiKuma
QUOTE(datathief @ May 18 2008, 11:22 PM) *
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.
ShiroiKuma
QUOTE(datathief @ May 18 2008, 03:08 AM) *
I've just set /etc/ppp/apm.conf to
CODE
exit 0


... which is obviously not the "right way" to do it...

But it seems to be working... Thanks a lot for that.
datathief
QUOTE(ShiroiKuma @ May 18 2008, 06:09 PM) *
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 wink.gif )
ShiroiKuma
QUOTE(datathief @ May 18 2008, 11:32 PM) *
QUOTE(ShiroiKuma @ May 18 2008, 06:09 PM) *
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 wink.gif )

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.
datathief
QUOTE(ShiroiKuma @ May 18 2008, 09:23 PM) *
QUOTE(datathief @ May 15 2008, 02:00 PM) *
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
devmem2 0x10000104 halfword 0xC6A0

... and down with:
CODE
devmem2 0x10000104 halfword 0x86A0


Edit: There's a bug in devmem2 when writing single bytes. Changed to write halfwords.
datathief
QUOTE(ShiroiKuma @ May 18 2008, 09:46 PM) *
QUOTE(datathief @ May 18 2008, 11:32 PM) *
QUOTE(ShiroiKuma @ May 18 2008, 06:09 PM) *
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 wink.gif )

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...
ShiroiKuma
QUOTE(datathief @ May 19 2008, 12:30 AM) *
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...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.