maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [WIP]Raspberry Pi as USB HDMI-out (via USB Networking) (https://talk.maemo.org/showthread.php?t=81408)

sulu 2012-01-17 09:17

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
For me exporting displays doesn't work at all. I can connect to the N900 with ssh -X but $DISPLAY will stay :0. And setting it to some other value has no effect (I'd have to check again if resetting it works at all).
If I start an application (e.g. leafpad, which I think is not "hildonized" - read: broken for X forwarding) it will still not be displayed on the computer screen but on the N900.

Please try some other application that really relies on X display (xterm doesn't), something with an actual GUI! Good starting points should be any applications that are plain official Debian packages (respectively merely optified versions of these).

freemangordon 2012-01-17 09:38

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Well, don't use ssh X forwarding then :).
I mean:

On X server machine do:

xhost ip_of_n900

On n900 do:

export DISPLAY=ip_of_xserver:0.0
su user
/etc/X11/XSession

the phone will most probably reboot, but before that you will see hildon-desktop on your server

javispedro 2012-01-17 12:51

Re: [WIP]Raspberry Pi as USB HDMI-out (via X, export DISPLAY)
 
Quote:

Originally Posted by Estel (Post 1151462)
do it understand correctly, that You mean that we can use x11vnc on N900, and udlfb on Raspberry Pi, connected to DVI/HDMi monitor, and that would cause usage of DisplayLink protocol, which is meant especially for high-bandwidth (like in local network), low-latency connections? sounds cool, need to test it ASAP.

No, I don't think that there is any DisplayLink "client" software-based implementation around.
I was just thinking that on the N900 side the setup is quite similar.

Also: It is NOT stretched. That's how Notes looks on 1680x1050.

javispedro 2012-01-17 12:52

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by sulu (Post 1151717)
For me exporting displays doesn't work at all. I can connect to the N900 with ssh -X but $DISPLAY will stay :0. And setting it to some other value has no effect (I'd have to check again if resetting it works at all).

Because you need to maemo-summon(er) them, not maemo-launch them. maemo-launcher will use the environment variables from when the daemon was started, not from the shell.

freemangordon 2012-01-17 13:17

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Anyway, running easy-debian chroot on Cygwin X server works like charm (usb networking through QtMobileHotspot). Don't see a reason why the same could not be achieved with the device in question.

sulu 2012-01-17 14:56

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by freemangordon (Post 1151729)
Well, don't use ssh X forwarding then :).
I mean:

On X server machine do:

xhost ip_of_n900

On n900 do:

export DISPLAY=ip_of_xserver:0.0
su user
/etc/X11/XSession

the phone will most probably reboot, but before that you will see hildon-desktop on your server

Doesn't sound very useful. :p

Quote:

Originally Posted by javispedro (Post 1151811)
Because you need to maemo-summon(er) them, not maemo-launch them. maemo-launcher will use the environment variables from when the daemon was started, not from the shell.

Of course I run the program from the same shell where I redefined $DISPLAY.

Quote:

Originally Posted by freemangordon (Post 1151827)
Anyway, running easy-debian chroot on Cygwin X server works like charm (usb networking through QtMobileHotspot). Don't see a reason why the same could not be achieved with the device in question.

I never tried that. It sounds promising. Maybe that's a way to get the Easy Debian desktop in a decent resolution to the Raspberry without having to clone the whole system.

Estel 2012-01-18 00:10

Re: [WIP]Raspberry Pi as USB HDMI-out (via X, export DISPLAY)
 
Quote:

Originally Posted by javispedro (Post 1151809)
No, I don't think that there is any DisplayLink "client" software-based implementation around.
I was just thinking that on the N900 side the setup is quite similar.

Sorry for the probably stupid question, but I think i don't get it. Could You explain more verbosely, what steps are required to try it with N900 and any linuxbox?

Quote:

Originally Posted by sulu
Doesn't sound very useful.

Of course I'm wrong, that seeing hildon-desktop on another machine = we can run other things from that desktop = task accomplished (kinda)? Sorry, I'm quite lost in this whole X thing.

Yet, results with ED sounds very promising. freemangordon and sulu, some noob-friendly steps to retry it on my own (let it be normal linux distro, or X Cygwin under windoze, whatever)?

freemangordon 2012-01-18 09:31

Re: [WIP]Raspberry Pi as USB HDMI-out (via X, export DISPLAY)
 
Quote:

Originally Posted by Estel (Post 1152107)
Sorry for the probably stupid question, but I think i don't get it. Could You explain more verbosely, what steps are required to try it with N900 and any linuxbox?



Of course I'm wrong, that seeing hildon-desktop on another machine = we can run other things from that desktop = task accomplished (kinda)? Sorry, I'm quite lost in this whole X thing.

Yet, results with ED sounds very promising. freemangordon and sulu, some noob-friendly steps to retry it on my own (let it be normal linux distro, or X Cygwin under windoze, whatever)?


There should be no difference whether you are using Cygwin under windoze or some linux distro, in general you need to:

1. start X server
2. add n900 as trusted host for that X server (xhost ip_of_n900)
3. on n900 in xterm or via ssh:
debian
su user
export DISPLAY=ip_of_Xserver:N.0
lxsession&

where N is most probably 0 if using Cygwin and most probably 1 if using linux distro (I am assuming that a second X server should be started under linux)

that is it.

Hurrian 2012-01-27 11:29

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
VNC works quite nicely, although it's slow at times (then again, what do you expect, I'm running it off QtMobileHotspot)

1280x752 (not exactly Full HD, but it's a HD resolution, all right), all the heavy lifting done by the N900@805MHz, the PocketCloud client on Android is just there do do client things.
http://goput.it/c38.png

Skry 2012-02-06 13:38

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
As freemangordon said, X forwarding should just work, I tested it with ssh through wlan. Laggy but usable. Could not get forwarding to work in Maemo though, something to do with different auth methods, had to boot to Arch.

http://goput.it//str/thumb/m_zxz_png.jpg

edit: should have red the whole thread first, nice concept :)

edit2: tested this via usb connection: video plays quite fine @ 1080p fullscreen, and lxde is smooth & responsive.

bingomion 2012-02-18 03:41

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Hi
I came across this device.
http://www.win-star.com/eshop/goods.php?id=30
It has linux drivers too :)

it's around 100AUD new
http://www.tradingpost.com.au/Comput...er=AD004985904

sulu 2012-02-18 17:49

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by bingomion (Post 1166450)
Hi
I came across this device.
http://www.win-star.com/eshop/goods.php?id=30
It has linux drivers too :)

Looks like the better idea if all we want from the raspberry is video output.

But thee might even be a cheaper and more common way to do that. Since 2010 there is a standard called MHL [1] with microUSB->HDMI adapters available from 15 Euros and it seems like at least in principle it works with Linux [2].
Does somebody know if kernel-power supports MHL or can be made to support it?

[1] http://en.wikipedia.org/wiki/Mobile_...efinition_Link
[2] http://patchwork.linuxtv.org/patch/9687/

qole 2012-02-20 00:59

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
The most important thing is that the drivers are open source, so that they can be compiled for our (ARM CPU) Linux kernel. If there are only closed-source Linux drivers available, then they're probably only for x86 (Intel / AMD CPUs) Linux.

Fabry 2012-02-20 01:11

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by sulu (Post 1166665)
Looks like the better idea if all we want from the raspberry is video output.

But thee might even be a cheaper and more common way to do that. Since 2010 there is a standard called MHL [1] with microUSB->HDMI adapters available from 15 Euros and it seems like at least in principle it works with Linux [2].
Does somebody know if kernel-power supports MHL or can be made to support it?

[1] http://en.wikipedia.org/wiki/Mobile_...efinition_Link
[2] http://patchwork.linuxtv.org/patch/9687/

There only one problem, N900 hasn't a MHL chip inside :D

Chip is not in the cable, it must be on the on-board logic

sulu 2012-02-20 06:27

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by Fabry (Post 1167142)
There only one problem, N900 hasn't a MHL chip inside :D

Chip is not in the cable, it must be on the on-board logic

I suspected something like that but I was hoping it isn't true.

I found another disturbing problem in connection with the N900's USB port:
It seems to be limited to approximately 4.1MB/s.I tried that with a 2.5" external HDD, a USB key and an SD card in a card reader by copying 4kB and 1MB blocks directly from the block device via dd using HEN and KP49. So the results are unaffected by file system parameters. I know that each of the devices reaches at least 20MB/s on other computers.
My CPU was not the limiting element.
Can somebody please check these findings? If what I've found is true then USB is not our fastest interface to the outside world. It's WLAN.

bingomion 2012-02-20 10:47

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by qole (Post 1167137)
The most important thing is that the drivers are open source, so that they can be compiled for our (ARM CPU) Linux kernel. If there are only closed-source Linux drivers available, then they're probably only for x86 (Intel / AMD CPUs) Linux.

Not sure, not really interested in get HDMI out of a phone RCA is good enough :)
I'm sure if someone interested emails them saying why you need the source they'll give it, or at least to a build for ARM.

I d/l the manual and it refers to: Libdlo & displaylink.
So i would say it's the drivers/application
http://libdlo.freedesktop.org/wiki

joerg_rw 2012-02-29 16:50

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by sulu (Post 1167196)
I suspected something like that but I was hoping it isn't true.

I found another disturbing problem in connection with the N900's USB port:
It seems to be limited to approximately 4.1MB/s.I tried that with a 2.5" external HDD, a USB key and an SD card in a card reader by copying 4kB and 1MB blocks directly from the block device via dd using HEN and KP49. So the results are unaffected by file system parameters. I know that each of the devices reaches at least 20MB/s on other computers.
My CPU was not the limiting element.
Can somebody please check these findings? If what I've found is true then USB is not our fastest interface to the outside world. It's WLAN.

check powertop, for C-states
Also (if you have the expertise) check clock frequencies of the CPU<->musbcore and the musbcore<-ULPI->PHY interface

HEN-host for sure isn't the optimum implementation of a USB host, but it shouldn't be THAT lame. How much could you dump to N900 with /dev/null as destination?

/j

sulu 2012-03-01 07:56

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by joerg_rw (Post 1172149)
check powertop, for C-states

I will do that. What does it tell me in connection with USB transfer rates?

Quote:

Originally Posted by joerg_rw (Post 1172149)
Also (if you have the expertise) check clock frequencies of the CPU<->musbcore and the musbcore<-ULPI->PHY interface

Unfortunately I do not have the expertise. Any hints on how to do that and how to interpret the results?
When it comes to kernel-related things I don't have much experience.

Quote:

Originally Posted by joerg_rw (Post 1172149)
HEN-host for sure isn't the optimum implementation of a USB host, but it shouldn't be THAT lame. How much could you dump to N900 with /dev/null as destination?

About the same 4.x MB/s

sulu 2012-03-01 20:49

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
I ran
Code:

dd if=/dev/sda of=/dev/null
and observed the C-states for about 10 minutes. The CPU was always in C0.

Estel 2012-03-01 22:06

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Even *if* results will turn out so bad, we can always use USB networking with Pi as host, and N900 as client, yep? At least, it would solve the transfer rate problem.

Nevertheless, it would be great to hammer hostmode transfer rates, for it's own sake. It's quite unbelievable, that no one else noticed it up to date... But, who knows. IF it's true, it's some kind of bug, not limitation of hostmode implementation (for N900) as whole, yep?
---

Maybe we should continue discussing hostmode transfer rate issues in hostmode thread (main one, not the "problems" section)?

/Estel

impeham 2012-03-12 09:54

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
has anyone been actually successful in connecting the n900 to an HD screen using the the raspberry pi's HDMI output and use a 720p/1080p display?

The frame rate is less important for me since i don't intend to view movies but only use this for OpenOffice and pictures vieweing.

sulu 2012-03-12 10:12

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by impeham (Post 1178260)
has anyone been actually successful in connecting the n900 to an HD screen using the the raspberry pi's HDMI output and use a 720p/1080p display?

I haven't tried with the N900/PI combination (partly because I have no PI) but I tried it with two other computers.
In principle all you have to do is install xpra (from squeeze-backports) in Easy Debian and start OpenOffice or whatever via xpra from within Easy Debian. You'll find a good how-to on that in the xpra man page's examples section.

Estel 2012-03-12 20:06

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
I'm awaiting for my Pi's delivery :)

jalyst 2012-04-22 11:34

Re: [Idea]Raspberry Pi as USB HDMI-out (via X, export DISPLAY)
 
Quote:

Originally Posted by qole (Post 1147268)
Berndt at Dreamchip has been working on such a thing for years now, and he has a little box called xbounds that can do this over WiFi for Maemo and Android. Don't know when they're actually planning to release it, it has been "in production" for so long now... I saw a demo on the N900 back in Summer 2010 and it was really good, but I guess he didn't want to release it for the N900 since it is discontinued...

I've been meaning to get back to him about that for ages.
Been so damn busy I've just kept putting it off :(
This was his response to me at the time
http://i1109.photobucket.com/albums/...2at92925PM.png
It's so damn awesome, I soooo hope it's an option for N9/950/900 owners soon.
It knocks over some of the most serious limitations all suffer.

jalyst 2012-04-22 11:38

Re: [Idea]Raspberry Pi as USB HDMI-out (via X, export DISPLAY)
 
Quote:

Originally Posted by Estel (Post 1147295)
Quite interesting info - thanks for sharing. Yet, considering WiFi bandwidth limitation, I don't believe it's true "mirroring" (especially in case of videos decoded via N900 dsp) - it's too much for USB, not to mention WiFi.

IIRC it's not done the way you're thinking it is, will dig up more info. later.
But agreed on your other point.....
It's still great to have this RaspberryPi alternative, so that control's in the community's hands.

MINKIN2 2012-06-13 23:42

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Not sure if I am doing something wrong here, but I am not able to mount my n900 file system?

Granted I only been attempting this for the last 20mins before bed time lol. Anyhoo, the only way I can get the R-pi to see the n900 is by going in to Mass Storage mode, when checking the drives in gparted I am getting the "unallocated space" status. The only options that are available to me is to create a NEW partition.

Checking in file manager, MyDocs and the SD card will appear but cannot be access due to the "not found" message (as expected, I guess). No other drives for the n900 will show.

As for the Debian SD card partitions, we have the following...

/dev/mmcbk0p1 - fat32
/dev/mmcbk0p2 - ext4
/dev/mmcbk0p3 - linux-swap

It's too late for me to delve any further without breaking something, especially my n900 so I'll leave this for to night.

On another note though, there is talk on the R-Pi forums of running the pi off a USB memory stick but with having an SD card still inserted to point the device to the OS directories. I wonder if it could be possible to make a card that can point directly to easydebian through usb?


UPDATE: I can now see and access mydocs and my card fine, not sure what was happening there but it worked with having the n900 plugged in whilst the Pi was booting up.
Unfortunately I still cannot mount the root directory.

pablocrossa 2012-08-22 14:00

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Quote:

Originally Posted by impeham (Post 1178260)
has anyone been actually successful in connecting the n900 to an HD screen using the the raspberry pi's HDMI output and use a 720p/1080p display?

The frame rate is less important for me since i don't intend to view movies but only use this for OpenOffice and pictures vieweing.

Could help by saying that I did something very similar to this :)

I have a computer with a 1680x1050 display running BackTrack5 (essentially Ubuntu 10.04LTS). I used to open a Xephyr session on the computer at 1600x900 (to have some space for the native apps), connect the N900 in pc-suite mode and enable USB networking. I then used a modified easydebian script together with some SSH X11 forwarding to launch the LXDE interface in the Xephyr session in the computer. The same concept can be applied to the Rpi except openning a Xephyr at 1080p fullscreen or so :) I remember it being decent performance except when you created large "squares" on the desktop to select multiple icons (I hope you understand what I mean with square hehe). Anyhow my point is this is definately possible.

Now, does someone know how to mount the root partition in an N900 through that USB networking so we can chroot and launch apps in virtual Xephyr sessions (or at least attempt to do so??) I do not have a linux PC or a working microusb cable with me so I cannot really investigate now. Any help appreciated :)

EDIT:
Actually someone with an ARM linux-running thing could try USB networking and SSHFS for a quick and dirty solution to see if apps can run on Xephyr without Hildon running, I do not have the hardware to try this hehe :o

mrsellout 2013-02-13 15:16

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
This is the inverse of what this thread was about, but nevertheless maybe of interest to subscribers.

Kyle Rankin, who previously reviewed the n900 in Linux Journal, has written this guide about using the n900 as a remote display for a Rasberry Pi using a USB network interface: N900 with a Slice of Raspberry Pi.

Estel 2013-02-19 19:09

Re: [WIP]Raspberry Pi as USB HDMI-out (via USB Networking)
 
Thanks - unfortunatelly, it's "just" a regular VNC.

While running ED through RPi's HDMI out is working great and almost-fullfil thread's promise, it would be nice to "somehow" tether Maemo's too, allowing to enjoy full 800x480 resolution on external screen, instead of blurred composite downscaling (at the same time, without slowiness of VNC, at least as compared to tethering Easy Debian into RPi).

/Estel


All times are GMT. The time now is 21:05.

vBulletin® Version 3.8.8