LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-29-2018, 08:31 PM   #1
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Rep: Reputation: 0
Installed on a tablet that display don't work so using it's HDMI but blank desktop then.


I installed Ubuntu 17.10 on a tablet and it's display don't work. But it's HDMI does and I have it on a 1080 TV.

Ubuntu see's it's built in display but it don't know I can't see it.

When I installed it I Had to blindly drag the install window from the left side so I could see it on my screen.

How can I disable the built in LCD screen on the tablet? I can only use the command line.

Last edited by Raymond Day; 03-29-2018 at 08:33 PM.
 
Old 03-29-2018, 08:32 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
What is the make/model of the tablet?
 
Old 03-29-2018, 08:44 PM   #3
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
It's a Winbook TW801

Here are some commands I did to try and get the display so it only shows on the HDMI.

root@TW801:~# gnome-tweak-tool
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
WARNING : Shell not installed or running
Unable to init server: Could not connect: Connection refused

(gnome-tweak-tool:2385): Gtk-WARNING **: cannot open display:
root@TW801:~# lshw -C display
*-display
description: VGA compatible controller
product: Atom Processor Z36xxx/Z37xxx Series Graphics & Display
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0d
width: 32 bits
clock: 33MHz
capabilities: pm msi vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:41 memory:90000000-903fffff memory:80000000-8fffffff ioport:1000(size=8) memory:c0000-dffff
root@TW801:~# cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
root@TW801:~#

Just don't know how to do this.
 
Old 03-30-2018, 04:03 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,534

Rep: Reputation: Disabled
On laptops, there are usually buttons to swap between internal & external screen, they are usually up with/above the function keys.

See if you have a 'control panel' in your menu system, you may be able to change the default behaviour in that.
 
Old 03-30-2018, 10:37 AM   #5
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
No this is a tablet so it don't have buttons on it. It's a Winbook TW801 with Ubuntu desktop I install in it. It works good but it uses the LCD inside it and that don't work on mine so I can only use the HDMI out of it for the desktop.
 
Old 03-30-2018, 12:14 PM   #6
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Here is inside my Winbook TW801

Click image for larger version

Name:	Winbook TW801 LCD cable no working inside.jpg
Views:	28
Size:	259.2 KB
ID:	27341

I open it and the LCD flat cable is off because the top wight color clip is off to put the cable in it. I put a tape on it and a little hose on it to push it good. But still the built in LCD don't come on.

On the HDMI I can move the mouse and some times pick up a icon and drag it to were I can see it on the screen of the HDMI but can't drop it on there it just moves very fast off the HDMI screen going back to the left side were I can't see it.

I been looking for 2 days how to swap or change what display it uses from the terminal. Can't find any thing that will fix this.

Maybe I have to install the old Ubuntu I had on it. It was working then on just this one display. But it said it has a big update that would take 2 hours and after I rebooted from that I could not get the display so it has setting on it. It's just a clear background.

Last edited by Raymond Day; 03-30-2018 at 12:15 PM.
 
Old 03-31-2018, 12:16 AM   #7
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
I thought Remote Desktop Connection would work but did not.

I did a apt install xrdp

Then on my Windows 10 in the search typed "Remote Disktop Connection" then Typed in the name tw801 and log in with my name and password and I got the same blank screen with no icons.

It says "sending login info to session manager, please wait... login failed for display 0"

Is there a way I guess to say display 1 with this?
 
Old 03-31-2018, 12:42 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
assuming that your system works, and all you need to do is switch off the internal monitor:
have you tried formulating a suitable xrandr line that will do just that?
i always use a graphical frontend called arandr. once you get it working it can save a script that can then be easily called at login.
 
Old 03-31-2018, 05:36 AM   #9
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
If I do the xrandr command I get this back all the time.

Code:
root@TW801:~# xrandr
Can't open display
root@TW801:~#
Had to do a apt install arandr then I did that command and got this back.

Code:
root@TW801:~# arandr
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/lib/python2.7/dist-packages/screenlayout/gui.py:111: Warning: invalid (NULL) pointer instance
  self.window = window = gtk.Window()
/usr/lib/python2.7/dist-packages/screenlayout/gui.py:111: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
  self.window = window = gtk.Window()
Traceback (most recent call last):
  File "/usr/bin/arandr", line 42, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/screenlayout/gui.py", line 319, in main
    force_version=options.force_version
  File "/usr/lib/python2.7/dist-packages/screenlayout/gui.py", line 157, in __init__
    self.widget = widget.ARandRWidget(display=randr_display, force_version=force_version)
  File "/usr/lib/python2.7/dist-packages/screenlayout/widget.py", line 48, in __init__
    self._xrandr = XRandR(display=display, force_version=force_version)
  File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 43, in __init__
    version_output = self._output("--version")
  File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 64, in _output
    raise Exception("XRandR returned error code %d: %s"%(status,err))
Exception: XRandR returned error code 1: Can't open display

root@TW801:~#
Maybe all that will say something.

I guess it my be some boot code I have to change to tell it only use the HDMI display.

Bay just dragging and drooping blind. I got 2 folders to go over to the HDMI display. File System and Home I don't know if I can do any setting with them for the screen.

I been looking on Google for help mostly see how to change the desktop not the screen it's on. This will be the 3RD day working on this still not fixed. I my just install the old Ubuntu. I forgot how I set it up to bad I did not back it up. Seems like it just worked on the HDMI screen but I remember in setting it would see the 1280 by 800 LCD built in it.
 
Old 03-31-2018, 05:44 AM   #10
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Looking on Google Did from some one that made a script to switch screens. I installed it but when I run it just gets a lot of errors and the screen don't do any thing. It looks like this:

Code:
root@TW801:~# ./switch_screens
: No such file or directory/bin/bash
./switch_screens: line 6: $'\r': command not found
./switch_screens: line 7: $'\r': command not found
./switch_screens: line 8: $'\r': command not found
': not a valid identifier declare: `screensOn
Can't open display
./switch_screens: line 23: syntax error near unexpected token `done'
'/switch_screens: line 23: `done <<< "$screens"
root@TW801:~#
If that helps to know how to fix this.
 
Old 03-31-2018, 05:53 AM   #11
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Looked for switch screens script ubunutu on Google.

Found this post.

Save is and ran it but still get errors.

Code:
root@TW801:/home/raymond/Desktop# python3 /home/raymond/Desktop/toggle_primary.py
Can't open display
Traceback (most recent call last):
  File "/home/raymond/Desktop/toggle_primary.py", line 5, in <module>
    scr_data = subprocess.check_output(["xrandr"]).decode("utf-8").splitlines()
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['xrandr']' returned non-zero exit status 1.
root@TW801:/home/raymond/Desktop#
Must be a boot edit that can get it to just use one screen the external or HDMI screen. If there is I have not found it yet.
 
Old 03-31-2018, 09:14 AM   #12
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Wow I got it working.

On the HDMI screen open a terminal. I ran the "toggle_primary.py" I did it like 3 times and it just came back with nothing changed. Not errors ether.

Because that did not get any errors wile in the terminal on the screen that can get to right clicking and pick open terminal here.

So I did the arandr command and it bought up a "screen Layout Editor" No error this time because I was not log in over it's WiFi with Putty.

I picked the 1280 by 800 unchecked the Active. It did some error because looks like a window went off the screen some.

I have not rebooted yet. I think this my work now.

Got a screen shot of it.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2018-03-31_10-06-08.jpg
Views:	17
Size:	105.4 KB
ID:	27346  

Last edited by Raymond Day; 03-31-2018 at 09:16 AM.
 
Old 03-31-2018, 10:35 AM   #13
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Reloading it and found out you just can't run the arandr as root.

So I run it as my desktop login. I had to do apt install arandr then use it.

Here is a screen shot of that and you can see how it see's the left side that I can't see.

The 2nd one I got to save it but it can't it says some error.

XRandR failed: XRandR returned error code 1:xrandr: Configure crtc 1 failed

So when I reboot it's back to the blank desktop.

This still is not fixed. How can I save this with out the "failed"?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-03-31 11-23-06.jpg
Views:	13
Size:	98.7 KB
ID:	27348   Click image for larger version

Name:	Screenshot from 2018-03-31 11-23-35.jpg
Views:	7
Size:	104.0 KB
ID:	27349  
 
Old 03-31-2018, 11:17 AM   #14
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Wow if only I could save and reboot looks like it would work.

I did a xrandr --verbose this my help to know how to I guess add to the end of the xrandr command and save it. Not sure.

Here is what that text looked like.

Code:
raymond@TW801:~$ xrandr --verbose
Screen 0: minimum 320 x 200, current 2720 x 1280, maximum 8192 x 8192
XWAYLAND0 connected 800x1280+0+0 (0x24) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x21
	Timestamp:  12252
	Subpixel:   horizontal rgb
	Gamma:      1.0:1.0:1.0
	Brightness: 0.0
	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: 
  800x1280 (0x24) 85.250MHz -HSync +VSync *current +preferred
        h: width   800 start  856 end  936 total 1072 skew    0 clock  79.52KHz
        v: height 1280 start 1283 end 1293 total 1327           clock  59.93Hz
XWAYLAND1 connected 1920x1080+800+0 (0x25) normal (normal left inverted right x axis y axis) 520mm x 290mm
	Identifier: 0x23
	Timestamp:  12252
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 0.0
	Clones:    
	CRTC:       1
	CRTCs:      1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
  1920x1080 (0x25) 173.000MHz -HSync +VSync *current +preferred
        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock  67.16KHz
        v: height 1080 start 1083 end 1088 total 1120           clock  59.96Hz
raymond@TW801:~$
I hope some one knows how can fix this.

The main program was can't run as root the xrandr

Not sure if that's why it can't save.
 
Old 03-31-2018, 01:15 PM   #15
Raymond Day
Member
 
Registered: Aug 2004
Location: Belleville MI
Posts: 33

Original Poster
Rep: Reputation: 0
Still trying here is some of the command line of me trying but nothing seems to work just can't save the setting of the screen.

Code:
raymond@TW801:/home$ xrandr
Screen 0: minimum 320 x 200, current 2720 x 1280, maximum 8192 x 8192
XWAYLAND0 connected (normal left inverted right x axis y axis)
   800x1280      59.93 +
XWAYLAND1 connected (normal left inverted right x axis y axis)
   1920x1080     59.96 +
raymond@TW801:/home$ xrandr --output XWAYLAND0 --off --output XWAYLAND1 --auto
xrandr: Configure crtc 1 failed
raymond@TW801:/home$
Is there some way to get into the built in screen settings? I could if I could see the other screen.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tablet won't work on Flash 8. Reinstalled xorg and the Wacom Tablet Project still doesn't work. Pressure issue korygiles Linux - Newbie 6 09-06-2016 12:13 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM
places not open, desktop blank after i installed the second radeon 6990.. pls help nokia2mon2 Linux - Newbie 3 11-12-2011 06:23 PM
TRUST 5300 SLIMLINE TABLET wont work on my Kubuntu 9.04 Desktop therealwoollsta Linux - Newbie 0 03-30-2009 05:17 PM
Blank display after setting desktop enhancements in Fedora 9 - KDE kdchapman1776 Linux - Newbie 3 07-23-2008 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration