![]() |
#16 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
The following was enough to get it working here:
Quote:
P.S. There is a band of black at the top and a smaller one at the bottom, so perhaps some tweaking is in order. Last edited by sogaiu; 03-11-2018 at 05:40 AM. Reason: corrected missing line |
|
![]() |
![]() |
![]() |
#17 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
Now to test mdp's Monitor mod
![]() |
![]() |
![]() |
![]() |
#18 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
Apart from the black bands above and below, seems to be working.
mdp's Monitor Mod + script to interpret touch info via adb almost works -- it's almost because of the black bands (coordinates are off because of the black bands). This was tested with a Raspberry Pi 2 running Raspbian (latest?) w/ some Android bits and python bits installed -- also /boot/config.txt was tweaked as mentioned before. |
![]() |
![]() |
![]() |
#19 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
Quote:
-- adding the aspect ratio to the model (duly, since you can meet 1920x1080 or 1280x1024 etc.): proportion = min( res_w_desktop / res_w_tablet , res_h_desktop / res_h_tablet ); offset_x = (res_w_tablet - (res_w_desktop/proportion))/2 offset_y = (res_h_tablet - (res_h_desktop/proportion))/2 -- the overscan configuration options of the Raspberry Pi (also, since you report also deal with asymmetry). EDIT: in fact, your get_mouse_and_factors() returns a "factor_x" and a "factor_y" ( return (mouse, host_x / (device_x * 1.0), host_y / (device_y * 1.0)) ) but there is actually a single proportion, since the Monitor software does not stretch. Last edited by mdp; 03-11-2018 at 04:39 AM. |
|
![]() |
![]() |
![]() |
#20 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
Quote:
I was hoping to eliminate the bands so as not to have to tweak the script, but may be that's easier at this point. As a data point, xrandr reports 1920x1200 when X is running. For reference, I'm not sure what the maximum resolution capability of an RPi 2 is, but it appears someone managed at some point to get some RPi to do 4k: https://www.raspberrypi.org/forums/v...p?f=38&t=79330 Attached should be edid.txt, obtained by doing: $ tvservice -d edid.dat $ edidparser edid.dat > edid.txt Also of potential interest: Quote:
Quote:
Last edited by sogaiu; 03-11-2018 at 08:55 AM. |
|||
![]() |
![]() |
![]() |
#21 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
With the following in /boot/config.txt, now there is a smaller black band at the bottom only (there is no black band at the top, but not sure if the top is cut off):
Quote:
|
|
![]() |
![]() |
![]() |
#22 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
Quote:
Resolution 1920x1200 is a ratio of 16:10, while the resolution of the Max2 is a 16:12, implying one empty band of 1/12 on top and another at the bottom. (The ratio of the 2104x1560 Monitor is actually 4.0461538462:3 , but let us try not to think about it.) If the script is not improved it will not cover resolutions outside 4:3 . |
|
![]() |
![]() |
![]() |
#23 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
Quote:
It was a good idea to use hdmi_cvt, Sogaiu, but maybe you stopped short of defining the rest, after the framerate? Quote:
|
||
![]() |
![]() |
![]() |
#24 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
Quote:
EDIT: up to now, the only HDMI modes I found that work in the boot config are 2200x1650@33 and 2200x1650@30. Nonetheless, the resolution remains 1920x1200. Using `tvservice -m "DMT 87" ` (the only resolution available apart from a "lower and safe" one seem to be that specified in /boot/config.txt) only blanks the screen, that comes back to 1920x1200 with an [ESC]. Experimenting would be easier if there was a command to try different settings... Maybe ` fbset -depth 16 -xres 2200 -vxres 2200 -yres 1650 -vyres 1650 ; xrefresh ` ? Sogaiu, have you tried 'hdmi_ignore_edid'? Also Everalm toyed with it. Remember, Everalm went up to eleven. And what about `sudo raspi-config` ; Advanced Options > Resolution ? (I cannot test right now) By the way, I did not remember the Raspberry PI to be so fast! It would do miracles, if only it had a fast storage (much faster than the SD). Last edited by mdp; 03-11-2018 at 02:44 PM. |
|
![]() |
![]() |
![]() |
#25 | ||||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
Quote:
What made a significant difference here to escape from 1920x1200 were the two max lines (how poetic): Quote:
Quote:
Quote:
Last edited by sogaiu; 03-11-2018 at 07:24 PM. Reason: Added note hdmi_ignore_edid |
||||
![]() |
![]() |
![]() |
#26 | ||||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
If you don't mind a small black band at the bottom of the screen, the following set up seems to work pretty well (except for some reason drag-and-drop). Note the use of 2104 and 1560 (not 2200 and 1650).
/boot/config.txt: Quote:
To test the touch capability of the Max 2 with the RPi (tested w/ RPi 2 running Raspbian 9), relevant pieces from the 'Onyx Boox as monitor' thread include: 1. Install the Monitor Mod 2 apk on the Max 2 and save the script on the RPi. 2. Shave some yaks by doing some installation on the RPi Quote:
4. Connect the RPi and the Max 2 with appropriate USB and HDMI cables. 5. Get adb running on the RPi with: Quote:
6. Answer 'OK' or equivalent to the dialog box that should pop up on the Max 2's screen about allowing the USB debugging connection. 7. Start Monitor Mod 2 on the Max 2 -- I often see a dialog box on the screen about power consumption (to which I typically answer 'OK'), but most of the time I haven't noticed power issues. 8. The script on the RPi needs to be coaxed a bit if using it from outside of X with something like: Quote:
Some observations: -The instructions were partially from memory, so there are likely some errors... -Double-clicking doesn't seem to work as well as when connected to a PC running some Linux distribution -Haven't had luck with drag and drop yet -- at least via the title bars of windows. Work-around: with focus on the window one wants to move, type alt-space, select 'Move' from the resulting pop-up menu, and then drag the window with the stylus to the ultimate destination. -It was helpful to have a physical keyboard attached while testing as well as SSH access to the RPi -- but if you've read this far, you probably knew those kinds of things already ![]() |
||||
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
Are you sure that's all you have in the /boot/config.txt ?
At some point, I did not have the screen any more - even though I would have sworn that I used modifications to the configuration which worked before -, and again replacing everything with your config lines does not bring effect. "Insert HDMI cable" etc. A `find . -mtime 2 ` reveals only the expected files, and nothing related to the display. Puzzling. A piece of the /boot/config.txt should be missing, or the HDMI of my RPi3 is malfunctioning (strange). |
![]() |
![]() |
![]() |
#28 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,481
Karma: 9010563
Join Date: Jul 2013
Device: none
|
|
![]() |
![]() |
![]() |
#29 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
When I run:
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#30 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
|
Quote:
https://github.com/xeffyr/termux-x-repository |
|
![]() |
![]() |
![]() |
Tags |
hdmi, pi-zero, raspberry |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Max Carta 2 as monitor - video footage desired | bobodude | Onyx Boox | 3 | 01-06-2018 01:51 PM |
Max 2 - Second monitor | Tenko-78 | Onyx Boox | 1 | 01-04-2018 09:53 AM |
Onyx Boox Max Carta as monitor for Android phone? | Kumabjorn | Onyx Boox | 5 | 07-02-2017 08:21 AM |
Response time of the Onyx Boox Max (vs Dasung monitor) | healinggreen | Onyx Boox | 0 | 12-16-2016 02:32 AM |
Kindle 3 wifi mode monitor | sniffing | visgean | Kindle Developer's Corner | 14 | 08-01-2011 09:04 AM |