Author Topic: Htc Universal  (Read 699786 times)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #120 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!
« Last Edit: April 24, 2008, 11:05:15 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/

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #121 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.
[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 #122 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.
« Last Edit: April 24, 2008, 06:22:36 pm by ShiroiKuma »
[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 #123 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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #124 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.
« Last Edit: April 24, 2008, 07:06:27 pm 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 #125 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.
[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 #126 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!!!!!!
« Last Edit: April 25, 2008, 09:26:29 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/

webdork

  • Newbie
  • *
  • Posts: 16
    • View Profile
Htc Universal
« Reply #127 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
« Last Edit: April 24, 2008, 07:39:55 pm by webdork »

webdork

  • Newbie
  • *
  • Posts: 16
    • View Profile
Htc Universal
« Reply #128 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!
« Last Edit: April 24, 2008, 10:26:00 pm by webdork »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #129 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.
[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 #130 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

datathief

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

ShiroiKuma

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