LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-22-2016, 05:26 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
laptop vs. external monitor(s) on-the-road


I take my laptop into conference and training rooms and need to use whichever available monitor is available. Can someone help me sort out the tinkering and adjusting that I do for each situation?

I expect to do some tinkering for any completely new-to-me monitors, but I hope to discover ways to script or create config files that make this easier than time spent doing point-click.

The hardware just works!
  • Lenovo laptop with display port
  • display port adapter to HDMI cable
  • monitor connection
    • direct HDMI
    • adapter HDMI to DVI
  • EXCEPTION
    • Lenovo VGA port to monitor VGA port
Since every new room has some different monitor, I must make adjustments to XORG things and Desktop things before I can get down to configuration for the presentation software that I use.

Thanks in advance,
~~~ 0;-Dan
 
Old 05-22-2016, 10:27 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
One would think it just works. If you do not have xorg.conf that is. You can always run xrandr --auto from CLI if needed.
 
1 members found this post helpful.
Old 05-25-2016, 02:36 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by Emerson View Post
One would think it just works. If you do not have xorg.conf that is. You can always run xrandr --auto from CLI if needed.
Foremost, I was not aware of xrandr --auto. Thank you for pointing this out.

Next:
I know that this command can be part of my per-login session scripts. Where might I put it so that it is a system-wide feature rather than per-login? Can I do this in /etc/rc.local?

Thanks, again,
~~~ 0;-Dan
 
Old 05-25-2016, 02:40 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Not sure, since it is an X application I'd say it needs X started to be useful. Somewhere in your X startup files would do. If your setup is parsing traditional ~/.xinitrc it will work from there.
 
Old 05-27-2016, 09:06 AM   #5
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
The ~/.xinitrc and various desktop-environment specific resources are per-login -- that is, per-user. I'm sure that there is some system-wide file that is part of the X-windows run-time.

Frankly, it has been forever since I've dug into X-Windows startup details. That was on VAXs decades ago. On Linux, things just worked and I was a happy user. This will give me the kick needed to blow the dust from what I think I know.

Cheers,
~~~ 0;-Dan
 
Old 05-27-2016, 09:58 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I tend to use xrandr to adjust after X is started. Although I never used --auto.

Extra devices might make more sense than adapters depending on the situation. Networked with vnc or ssh -X type setups and it's just as good as an adapter with a few bonus features (if you have knowledge and setup time). Various SBCs outs now with a variety of outputs for < $100. Some as low as $5. Or it's just my inner redneck coming out since ethernet cables are $5-ish and HDMI cables are still $30-ish. Or several hundred if you want an HDMI longer than ten feet.
 
Old 05-31-2016, 01:08 PM   #7
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by Shadow_7 View Post
I tend to use xrandr to adjust after X is started. Although I never used --auto.

Extra devices might make more sense than adapters depending on the situation. Networked with vnc or ssh -X type setups and it's just as good as an adapter with a few bonus features (if you have knowledge and setup time). Various SBCs outs now with a variety of outputs for < $100. Some as low as $5. Or it's just my inner redneck coming out since ethernet cables are $5-ish and HDMI cables are still $30-ish. Or several hundred if you want an HDMI longer than ten feet.
I'm not clear where you are going with this...

Situation I
My laptop at home office at my desk uses the same external monitor always.
I want to "store this configuration" so that it is handy without having to tinker
when I connect in my home office.

Situation II
I go walkabout for a presentation. Lord only knows what I'll face for an external monitor. Sometimes its a "monitor". Sometimes its a "projector". Sometimes its a "classroom" [see note]. I'd like to:
  • automate as much as is reasonable
  • be able to store and re-use external monitor configurations
  • failing config re-use, minimize the per-site tinkering that is required.
    (I'm just starting to investigate using "xrandr --auto" and expect that will help some.)

NOTE -- "classroom" is just that, but technically I connect to some brick at the presenter's desk. The brick connects to who knows what. Once connected, all the room tech drives all of the displays and projectors and such.

Thanks in advance,
~~~ 0;-Dan
 
Old 05-31-2016, 01:19 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
In case xrandr --auto works for you - use xbindkeys to assign this command to a key on your keyboard.
 
1 members found this post helpful.
Old 05-31-2016, 03:21 PM   #9
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Thanks for the tip about a key binding...

ASIDE re: "Religions"
If you are speaking of belief systems, I agree. However, it seems that the institutions and political systems that grow up around those beliefs have a poor track record for human happiness.
END-ASIDE
 
Old 05-31-2016, 03:23 PM   #10
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by Emerson View Post
In case xrandr --auto works for you
It is the rest of the tinkering that tangles my hair. xrandr tells X-windows all about the new hardware. Somehow I still must tell my desktop environment about what is now available from X-windows.
 
Old 05-31-2016, 06:32 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There's a number of low power and cheap SBCs designed for digital signage. With most of the video outputs one would ever need. Although you might need more than one type to cover all options. So instead of having a bag of adapters, you could take one or more of these along and bridge the gap. With various ways to stream your desktop to said device and other options.

Just an option as I recall buying a GPU to have HDMI out and an expensive HDMI cable during the digital TV conversion. These days I could have just streamed my existing setup to a Raspberry Pi over an Ethernet cable. Versus an aftermarket GPU that burned a lot of watts, put out a lot of heat, and only lasted two years. And probably accelerated the death of at least two PSUs during those two years.
 
1 members found this post helpful.
Old 06-02-2016, 11:45 AM   #12
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Thanks to all for your comments and suggestions.

You have convinced me that while Linux display hardware and software have certainly improved since the original X-11 days, it still has not embraced usability by non-wizard mortals doing the useful things that we want to do.
We complain about the walled-gardens that are Windows and Macintosh. I run Linux because I want the flexibility to solve my own problems. That doesn't mean that I want to be forced into tinkering to accomplish everything.

Why doesn't Linux display management and desktop enviroment parts do something like this:
  • end user describes how they want to use their displays (This might be the result of a SAVE operation
    after tinkering a set of parts into cooperation.)
  • on startup, display parts map available hardware onto the SAVEd configuration
  • where possible, the display parts cooperate with what is SAVEd
  • where conflicts exist, the display parts ask the end-user to select among alternate SAVEd configurations or to fall-back to a set of defaults.
  • at the end of this startup negotiation and selections, the end user is asked to SAVE that configuration.

NOTE -- It seems that this is what happens with network wire and wireless configuration.
I guess that the display folks never got this memo.


Heavy sigh,
~~~ 0;-Dan
 
Old 06-04-2016, 01:52 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Perhaps wayland and mir address this issue in particular.

There is xrandr and arandr (a gui for xrandr) available to any X session. Although nVidia proprietary drivers do not play well with xrandr, but that might have changed, it's been a few years. The proprietary drivers tend to have their tools to adjust X settings like layout and color. The mainstream desktops have built in options too. Using xrandr is more of a when all else has failed option. Like intel that doesn't seem to have gui linux tools for their video drivers but otherwise plays well with xrandr, xbacklight, xsetbg, and other options.

$ amdcccle

$ nvidia-xconfig

$ arandr

And other options I'm probably not familiar with.
 
  


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
Laptop monitor shuts off when attempting to switch to external monitor (Debian) sgh Linux - Laptop and Netbook 4 02-20-2012 11:33 PM
Viewing external monitor only on laptop rmcellig Linux - Laptop and Netbook 3 10-31-2010 12:23 PM
external monitor on laptop stu_mueller Slackware 13 04-29-2008 03:00 PM
how use external monitor with laptop? lugoteehalt Linux - Laptop and Netbook 5 02-11-2006 09:35 AM
external monitor on a laptop bobterri Linux - Hardware 2 01-14-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:02 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