LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-04-2023, 02:39 AM   #1
lvm_
Member
 
Registered: Jul 2020
Posts: 984

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
reset HDMI


Is it possible to reset HDMI connection or power it down and back on or something like this without restarting the PC? The problem is: I have a kubuntu 22.04 HTPC connected to Samsung AU9070 TV which has an annoying quirk: if I turn on the TV first all is fine, but if turn the TV on while PC is already on TV doesn't detect it - says the device isn't turned on, and that's that, and I have to ssh to PC and reboot it. Cost me quite a bit of time initially while I tried to figure out why the perfectly good PC doesn't show anything. Weirdly it didn't have this issue with my old 1920*1080 HTPC, it started only after I upgraded it to 4K-capable hardware with built-in intel graphics (12100 i3 CPU), and had to turn on some advanced HDMI mode in TV settings because otherwise 4K was limited to 30fps - another quirk, again time wasted to figure it out.

Last edited by lvm_; 06-04-2023 at 02:45 AM.
 
Old 06-04-2023, 05:23 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
What you describe is not a fault. On startup, X configures every monitor about. If your hdmi doesn't have a live tv on the hdmi, X thinks: "OK, nothing on the hdmi."

Try editing /etc/inittab and change the default runlevel to 3, instead of 4 or 5. Then when you want the tv, connect it to hdmi. Log out of X; and type startx again. Usually that's just up-arrow & return. Then X will find the monitor. The + is that you only have to log out, not reboot to have the monitor recognised; The - is that you have to log into a console before you can start X.
 
Old 06-04-2023, 06:49 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,989

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
What you describe is not a fault. On startup, X configures every monitor about. If your hdmi doesn't have a live tv on the hdmi, X thinks: "OK, nothing on the hdmi."
That certainly isn't my experience. If I power up a PC with the monitor or TV connected by hdmi powered down and then power up the TV/monitor everything works fine. In fact, I just did it twice, once with my monitor and once with an hdmi connected TV, just to make sure I was remembering correctly. I don't have 4K however, so that may create issues I'm unaware of. I think something is wrong, either in your TV settings or your HTPC settings. First place I would look is in System Settings > Display Configuration. Make sure your TV is properly identified and configured as "Enabled" and "Primary".
 
Old 06-04-2023, 10:55 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Starting a pc without the primary monitor sounds fairly weird to me. In the absence of information from the OP, I won't debate this. I presumed it was a secondary monitor.
 
Old 06-04-2023, 11:10 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,047

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
Quote:
Originally Posted by business_kid View Post
Starting a pc without the primary monitor sounds fairly weird to me. In the absence of information from the OP, I won't debate this. I presumed it was a secondary monitor.
I do that continuously with my RPi boards. And hdmi is only plugged in when network is down. I have never experienced an issue like this, probably it depends on the TV too.
 
Old 06-04-2023, 11:49 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
HDMI is the ONLY video out on the RazPi. No laptop will spot hdmi plugging after X has started. X configures the primary monitor, and any others it finds. But it's likely to puke with a "No screens found" error if it's booted headless.

Anyhow this debate is pointless and doesn't help the OP. Solve his problem, instead of hijacking his thread to take swipes at me.
 
Old 06-04-2023, 12:04 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,758

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by business_kid View Post
HDMI is the ONLY video out on the RazPi. No laptop will spot hdmi plugging after X has started. X configures the primary monitor, and any others it finds. But it's likely to puke with a "No screens found" error if it's booted headless.

Anyhow this debate is pointless and doesn't help the OP. Solve his problem, instead of hijacking his thread to take swipes at me.
I agree with the assessment that the HDMI device needs to be powered on before booting, as I've seen this exact behavior before. The caveat, though, is if the device itself is actually powered off or what I call 'software off'; meaning the SCREEN is powered off but the logic board is powered, so HDMI will be recognized as 'on'. I believe that's something the audio/video folks call HDMI-CEC. Turning that on for the device means other things can 'power it on'.
https://www.howtogeek.com/207186/how...hy-you-should/

Most actual HDMI monitors won't have it, but televisions will. The device mentioned by the OP does:
https://www.samsung.com/in/support/t...sung-smart-tv/
 
Old 06-04-2023, 12:47 PM   #8
lvm_
Member
 
Registered: Jul 2020
Posts: 984

Original Poster
Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
I am rather surprised the discussion went this way, but at least the conversation is flowing :) Linux (or windows for that matter) supports on-the-fly monitor configuration changes - that's what randr is for, so the idea that computer won't be able to use the monitor if it wasn't connected at startup is ridiculous, but in my particular case this is not even a factor. PC does see the TV even when the TV is off - not unplugged, just off, HDMI device is connected and display is properly configured:

Code:
lvm@htpc:~$ xrandr -q --display :0
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 16384 x 16384
HDMI-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 1872mm x 1053mm
but this blasted buggy TV at the very same time reports that PC is off and shows no picture.

Last edited by lvm_; 06-04-2023 at 12:49 PM.
 
Old 06-04-2023, 12:55 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,758

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by lvm_ View Post
I am rather surprised the discussion went this way, but at least the conversation is flowing Linux (or windows for that matter) supports on-the-fly monitor configuration changes - that's what randr is for, so the idea that computer won't be able to use the monitor if it wasn't connected at startup is ridiculous, but in my particular case this is not even a factor. PC does see the TV even when the TV is off - not unplugged, just off, HDMI device is connected and display is properly configured:

Code:
lvm@htpc:~$ xrandr -q --display :0
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 16384 x 16384
HDMI-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 1872mm x 1053mm
but this blasted buggy TV at the very same time reports that PC is off and shows no picture.
I'd check the CEC settings.
 
Old 06-04-2023, 11:20 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by lvm_ View Post
this blasted buggy TV at the very same time reports that PC is off and shows no picture.
This can be a quirk of some combinations of TV firmware, motherboard firmware, GPU firmware, distro (X version; Xorg vs Wayland), and driver versions. I have lots of each. Some combinations just refuse to play nice together. At least for those with a new (enough) TV, one has the option to request a firmware upgrade, and if the request is denied, either return it, or exchange it, hoping you just got a bad one.

In this case, I'd look for a HTPC firmware update. I'd also try live media of some non-Debian-based distro to rule out Kubuntu. For that matter, you appear have broken a Linux wisdom, which is make sure your OS is months (somewhere between 3 and 12) newer than your hardware. You have an Alder Lake CPU/GPU released only about a month or so prior to Kubuntu 22.04. Likely that's functionally backwards the way prerelease version freezes work. You might solve the problem with a backport kernel and/or Xorg, or some newer distro release.

All that said, sometimes an expensive HDMI cable is no better than WalMart's cheapest, and a proven high quality cable is all that's needed.
 
Old 05-21-2024, 10:11 AM   #11
lvm_
Member
 
Registered: Jul 2020
Posts: 984

Original Poster
Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Not necroposting, but successful conclusion: after a firmware update TV works fine and detects PC regardless of power on order. Not that I did anything.
 
Old 05-21-2024, 10:19 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
I had similar issue with one of my boxes, running 'xrandr --auto' fixed it every time. Must set the DISPLAY variable when running over SSH, that's all.
 
  


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
Connect computer hdmi outport to TV hdmi inport. ostene Linux - Software 2 07-04-2014 06:33 AM
LXer: $50 Roku stick goes HDMI y HDMI with Chromecast LXer Syndicated Linux News 0 03-06-2014 01:00 PM
Is it possible to play Blu Ray through a video card HDMI output to HDMI TV? SharpyWarpy Linux - Hardware 5 10-28-2012 01:01 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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