Jump to content

cubietruck / Motorola Lapdock:Only one resolution


vexation

Recommended Posts

Hallo,

I have armbian 3.4.109 (Jessie) on a cubietruck. It is connected to a Motorola Lapdock. I have the problem, I could not change the resolution (xfce 4) from 1920x1080.

Tried following steps:

 

xrandr

output: Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080     60.00*

error Message: Failed to get size of gamma for output default

 

cvt 1280 800

output: # 1280x800 59.81 Hz (CVT 1.02MA) hsync: 49.70 kHz; pclk: 83.50 MHz
Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

 

When I try to add new entry with xrandr, I always get error messages. Once the gamma value is missing. When I add a gamma value, it sais, the Display "Screen 0" is not known:

 

root@cubietruck:~# xrandr --output "Screen 0" --gamma 1.0:1.0:1.0
xrandr: Failed to get size of gamma for output default
warning: output Screen 0 not found; ignoring
xrandr: Need crtc to set gamma on.

OUTPUT from logfile:

root@cubietruck:/var/log# cat Xorg.0.log | grep gamma
[   513.429] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)

 

root@cubietruck:/var/log# cat Xorg.0.log | grep screen
[   513.401] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
[   513.404] (==) No screen section available. Using defaults.
[   513.405] (==) No monitor specified for screen "Default Screen Section".
[   513.496] (II) GLX: Initialized DRISWRAST GL provider for screen 0

In the logfile the screen is specificate as "Screen 0" and the gamma set to 1.0 1.0 1.0? I tried several options with xrandr (add a new entry or change one - but it never works...

 

Is someone there with an advise? I have read different threads in other forums, but nothing helped. Or should I remove all desktop manager and install them again?

 

Regards

vexation

 

Link to comment
Share on other sites

Okay,

 

fbset -i

output: mode "1920x1080-60"

 

I have checked the modes in /etc/fb.modes - there are several "modes". When I try:

 

fbset 1152x864-60

output: ioctl FBIOPUT_VSCREENINFO: invalid argument

 

fbset -fb /dev/fd0 1152x864-60

output: ioctl FBIOPUT_VSCREENINFO: invalid argument (also with dev/fd1 ;O)

 

fbset --test 1152x864-60

output: ioctl FBIOPUT_VSCREENINFO: invalid argument

 

#####################

What worked:

fbset -xres 1152 -yres 864

#####################

 

But after that, my "Desktop" was not in the whole visible ;O)

 

After that I used

fbset -xres 1366 -yres 768

 

fbset -i >> /etc/fb.modes (deleted the not needed last lines)

 

fbset 1366x768-111

# This time no (error)output

 

fbset /dev/fb0 1366x768-111

export FRAMEBUFFER=/dev/fb0

(after a reboot also with /dev/fb1)

 

reboot

When I invoke fbset -i

 

it is back to mode "1920x1080-60" ;O)

 

In the beginning I have made a new bootable micro SD Card and changed the values for display in /boot/boot.cmd for , but without any effect. But when I changed it with the command it works:

a10disp changehdmimodeforce 4

 

Maybe it was an option to add this command or fbset to a file while the system boot up?

 

Thanks for your support ;O)

Link to comment
Share on other sites

Sorry - I have just seen you have written to change resolution with fbset in /etc/rc.local.

Do you mean I should create a fb.modes file in /etc/rc.local?

Would this commands be the right one? Should I only set the one desired mode (1366*768) into the file?

 

cp /etc/fb.modes /etc/rc.local/

mv /etc/fb.modes /etc/bak_fb.modes

fbset -db /etc/rc.local/fb.modes

 

regards

Link to comment
Share on other sites

Sorry - I have just seen you have written to change resolution with fbset in /etc/rc.local.

 

This is what worked for me when I tried to use a HDMI display with an unusual resolution: http://forum.lemaker.org/thread-15430-1-1.html

 

I don't know that much about these issues (most of the times I use Linux headless and often I've no idea how the hardware looks like I'm working on) but can confirm that in this case it worked after finding out which values were the correct ones for the display. X11 used the same resolution set with fbset without any further tweaks.

Link to comment
Share on other sites

solved!!!

After my last post I have thought a little bit of it ;O) /etc/rc.local is a file and not a directory, how I have written.

 

nano /etc/rc.local

 

fbset -xres 1366 -yres 768

exit 0

 

 

 

A reboot and it works!!!

Many thanks for your kind support. Without "fbset" I would not get it ;O)

 

One last question: How can I changed this post to "solved"?

Link to comment
Share on other sites

Without "fbset" I would not get it ;O)

 

Fine, maybe we should add a small fbset remark to the documentation since people quite often ask how to overcome the few 'standard' HDMI display resolutions (especially sunxi) devices support.

 

BTW: a quick google search showed the following settings for the 2 different Lapdock sizes:

fbset -g 1280 720 1280 720 16 -t 13468 140 210 10 10 20 10

And for the bigger one:

fbset -g 1360 768 1360 768 32 -t 11799 208 72 22 3 136 5
fbset -g 1366 768 1366 768 32 -t 11647 216 72 23 1 144 3
fbset -g 1366 768 1366 768 32 -t 14301 200 56 19 1 144 3
Link to comment
Share on other sites

Fine that you have searched.

Sometimes the problem is to use the right searching terms. I have always looked for displayproblems | resolution | xfce  and so on ;O) I have never looked for Motorola Lapdock.

It would be nice, if you could add it to the documentation.

 

But how I have written: With Armbian 4.2.3 Jessie everything works out of the box.

 

BTW: Quitt this topic with "solved"? How can I do this

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines