LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fast scrolling screen on hdmi output , vga output is ok (https://www.linuxquestions.org/questions/linux-newbie-8/fast-scrolling-screen-on-hdmi-output-vga-output-is-ok-4175611877/)

sumeet inani 08-13-2017 12:06 PM

fast scrolling screen on hdmi output , vga output is ok
 
1 Attachment(s)
hi ,

First , I tested HDMI display with raspberry pi 3.
Code:

pi@raspberrypi:~ $ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1366 x 768, current 1366 x 768, maximum 1366 x 768
default connected 1366x768+0+0 0mm x 0mm
  1366x768      0.00*
pi@raspberrypi:~ $ xrandr --verbose
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1366 x 768, current 1366 x 768, maximum 1366 x 768
default connected 1366x768+0+0 (0x2a6) normal (normal) 0mm x 0mm
        Identifier: 0x2a5
        Timestamp:  21829
        Subpixel:  unknown
        Clones:   
        CRTC:      0
        CRTCs:      0
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                  filter:
  1366x768 (0x2a6)  0.000MHz *current
        h: width  1366 start    0 end    0 total 1366 skew    0 clock  0.00KHz
        v: height  768 start    0 end    0 total  768          clock  0.00Hz
$ gtf 1366 768 0.00

  # 1368x768 @ 0.00 Hz (GTF) hsync: nan kHz; pclk: nan MHz
  Modeline "1368x768_0.00"  nan  1368 0 0 0  768 769 772 769  -HSync +Vsync

So , it seems 1366x768 resolution is OK for HDMI display .
Now ,
I have dreamplug device . it has VGA and HDMI output .
It is running ubuntu 10.04 with architecture armv7l.
OS is not the problem , Configuring HDMI is .
Here is xrandr output
Code:

Screen 0: minimum 300 x 200, current 1024 x 768, maximum 2390 x 768
lvds connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768      60.0*+
  1366x768      60.0 
  1280x768      60.0 
  1280x720      60.0 
  1024x600      60.0 
  800x600        60.3    56.2 
  800x480        54.3 
  640x480        60.0 
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 270mm x 200mm
  1024x768      75.0    70.1    60.0*
  832x624        74.6 
  800x600        85.1    72.2    75.0    60.3    56.2 
  640x480        85.0    75.0    72.8    66.7    59.9 
  720x405        70.0 
  720x400        70.1

I tried all the options available in lvds (sudo xrandr --output lvds --mode <mode>) but HDMI output is distorted version of VGA output in some cases (640x480 , 1280x720 , 1024x768), 'no signal' in others. Horizontal and vertical sync seems to be the issue.
So , I created new mode (using output of gtf from above) as follows
$xrandr --newmode "1368x768_0.00" nan 1368 0 0 0 768 769 772 769 -HSync +Vsync
Ran it
$xrandr --addmode 1368x768_0.00
$sudo xrandr --output lvds --mode 1368x768_0.00

VGA display showed login prompt again . Seems , X server got killed and restarted.

I think , if I give the right parameters for X configuration. It should work.
Now , what should I do ?

attached /var/log/xorg.0.log

Thanks.

business_kid 08-13-2017 02:38 PM

It seems you're in a mess and want someone to read your log file for you.
Code:

(II) XINPUT: Adding extended input device "SEM USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(EE) SEM USB Keyboard: failed to initialize for relative axes.
(II) SEM USB Keyboard: initialized for absolute axes.

I don't think you should be running framebuffer in X. To judge by the l-o-n-g log, video is a mess. Framebuffer was a console mode thing. I would start by moving aside all video configuration, and see what X does. It will interrogate what it finds, and set up a reasonable mode. The show stopper was the keyboard. I'm not familiar with that error. Google 'Keyboard: failed to initialize for relative axes' & Go figure.

sumeet inani 08-14-2017 12:28 AM

am i going in right direction
 
business_kid , thanks for replying .

I am wondering , why did xrandr in raspbian say 0.00 . 0Hz can't be the refresh rate .
So , I am sure that I am not making the right mode for hdmi of dream plug .
The OS came pre-installed and there is no way to boot via USB stick.

is keyboard error the most critical one ? https://bbs.archlinux.org/viewtopic.php?id=133564 tells me it is mild.

How do I interrogate X in dream plug ? Should I post xorg.conf ?

I also noticed that I see a few lines of text on HDMI display when I reboot OS .

BTW : studioworks is my CRT monitor connected via VGA and HDMI display is a samsung LCD TV .

business_kid 08-14-2017 05:49 AM

Quote:

I am wondering , why did xrandr in raspbian say 0.00 . 0Hz can't be the refresh rate .
I agree, but presume it couldn't access a refresh rate. I have an /etc/X11/xorg.conf.d/20-video.conf section which sets up
1. 1600x900 laptop screen
2. The vga plug with unknown specs. It will ask & configure accordingly.
3. A 1280x720 projector on hdmi plug.
4. A 1920x1080 hdmi output on hdmi plug.

Each has their own max refresh rates, and there's left/right thing set up between screens 1 & 3 or 4 so I can start stuff and then drag it across to appear on the projector without distracting people with my desktop.All are configured, but not all are present. The video.conf has ServerLayout section, Each one has a Monitor, Device & Screen Section. At startup, X configures for what it finds.

As for the keyboard, it had EE (=error) beside it and X gave up after that, so it was a show stopper imho. I don't use the 'evdev' driver, I use the 'kbd' one. Could you try that?

sumeet inani 08-15-2017 12:27 AM

how to change driver
 
1 Attachment(s)
first i have to check if my kernel has kbd driver . how ?
then how to make it default ?

also here is xorg.0.log without vga monitor and keyboard connected .
i accessed my device via Ethernet but xrandr in ssh session said can't open display .

xdpyinfo says unable to open display "" .

AwesomeMachine 08-15-2017 01:15 AM

Regardless, you're probably going to have problems with refresh set to 0.00. I would just try 60 and see if it works.

business_kid 08-15-2017 12:21 PM

It seems X can't find stuff because it's non standard or not there. Either way, you seem to need an Xorg config. Here's the bare bones of one screen on my box. You don't need any of the options that don't make sense in general or in your box in particular.
Code:

less /etc/X11/xorg.conf.d/20-video.conf

Section "ServerLayout"
    Identifier    "X.org Configured"
    Screen      0  "Screen0" 0 0
EndSection

Section "Monitor"
    Identifier    "Main"
    VendorName    "Samsung"
    ModelName      "TFT_Display"
    HorizSync      30.0 - 75.0
    VertRefresh    50.0 - 90.0
    Option        "DPMS"
    Option  "Primary"
    Option "PreferredMode"  "1600x900"
    Option "Position" "0 0"
EndSection
Section "Monitor"
    Identifier    "Main"
    VendorName    "Samsung"
    ModelName      "TFT_Display"
    HorizSync      30.0 - 75.0
    VertRefresh    50.0 - 90.0
    Option        "DPMS"
    Option  "Primary"
    Option "PreferredMode"  "1600x900"
    Option "Position" "0 0"
EndSection
Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    BusID      "PCI:0:2:0"
EndSection
Section "Screen"
    Identifier "Screen0"
    Device    "Card0"
    Monitor    "Main"
    Option  "Primary"
    Option "PreferredMode"  "1600x900"
    Option "Position" "0 0"
    DefaultDepth    24

    SubSection    "Display"
#        Modes    "1600x900" "1440x900" 1280X720" "1280x720" 
        Depth      24
    EndSubSection 
EndSection

If you look at the InputDevice section of man xorg.conf, you'll find a keyboard config.

sumeet inani 08-24-2017 09:39 PM

sorry for late reply .
last i remember , xorg.conf had no useful info .
i will post that once i get back my device from my friend .
i will compare xorg.conf of raspbian (which works with HDMI TV) to dreamplug . see , if i get anywhere .
thanks .


All times are GMT -5. The time now is 08:18 PM.