enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 25, 2021 17:51:43 GMT
There is a setting called screen blank in settings panel --> screen --> blanking.
If I enable this setting, when it blanks my screen, it also cuts off HDMI sound at the same time (which I have hooked up to my AVR). This is inconvenient when playing music, as it happens always, even when the display is already turned off in the first place.
Is there any way to have automatic screen blanking after certain amount of time that only blanks or turns off the screen? Or if not, can I only have it blank the primary display and ignore the HDMI completely, (which isnt even turned on anyway in my case, but I assume something related to why its turning off hdmi at same time as primary display).
|
|
|
Post by thewaiter on May 25, 2021 18:23:57 GMT
sleep 1 && xset dpms force off
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 25, 2021 19:48:23 GMT
sleep 1 && xset dpms force off
I'm not sure I understand. Do I add this to startup commands, or is that command changing a setting? Is it forcing screenblank to only apply to primary display? Is it disabling hdmi? or does it just make the screenblank ignore audio? What does it do?
|
|
|
Post by thewaiter on May 25, 2021 19:50:52 GMT
An instant solution for turning off the screen. Try if audio is working. I could not recommend more
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 25, 2021 19:53:43 GMT
Ok I think that's unrelated. As mentioned, this happens even if the screen is off. 11 minutes later it will disable hdmi audio regardless, which I do not want it to do. But I want to keep the automatic screenblank turned on, so if I walk away and forget to turn the display off, it will turn itself off.
So even if I started running that command to turn off my display, instead of pushing the display off button my laptop has as I normally do, the sound will still shutoff 11 minutes later. I will confirm later but 99% sure this is unrelated, unless it's disables moksha's screenblank function...
|
|
|
Post by thewaiter on May 25, 2021 19:56:53 GMT
Understand. Try to do some research. I do not know off hand wiki.archlinux.org/title/Display_Power_Management_SignalingS EDIT: I will use that command I gave you. When I watch the movie via HDMI, I use to turn the laptop screen off for saving battery life. I will bind that command to key combination.
|
|
|
Post by thewaiter on May 25, 2021 20:19:39 GMT
The main issue here is why is the blanking breaking the audio. This needs testing and understanding the moksha code related to that module. Maybe one day I will look
|
|
|
Post by oblio on May 27, 2021 14:31:18 GMT
What does your audio routing look like?
For example, my system is running my display out of my video card through my TV via HDMI and includes my audio path. That said, my audio is routed out of my TV via optical output to a converter to RCA output which runs into an mid 70's Marantz. Point being, if my screen blanks, that is disabling both audio and video, via HDMI. Additionally, if my TV is off, I cannot use audio from my PC. I do not have experience breaking the signal down and splitting audio from video as it's passed through HDMI. I'm not sure it's possible. Do you have an audio interface or are you using your video card to handle both audio and video?
Did you have a different distro where you could accomplish what you are trying? That could be a helpful clue. Also, have you been able to run one monitor blanked and the other not previously? That could be useful to me as I don't always run both of my monitors. I suspect your system is seeing the HDMI as video/audio combined.
Anyway, sorry to play 20 questions. Please let me know what your routing looks like if you have a second. Thank you!
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 27, 2021 16:28:05 GMT
My computer is directly connected to AVR (Yamaha RX-A1040) thru HDMI cable. (AVR = Audio Video Receiver, i.e. "amp").
Speakers are directly connected to the AVR thru copper wire. (In fact I ran wires in the walls for 7.1 surround and have speaker terminal plates that the speakers and AVR plug in to, but thats of course unrelated....)
My tv is also hooked up to AVR via HDMI, but I don' think it is at all related. Besides that it's not normally turned on, and certainly not when playing music, it's only used as an output device; I never use the TV as more than just a monitor [dont use its speakers or its audio outputs or its tuner or its apps etc, only thing attached directly is AVR.] (Also have Tivo hooked up to AVR for tv/plex/prime, and oppo bdplayer for any discs, both of these also HDMI).
I haven't tested on another distro.
|
|
|
Post by oblio on May 27, 2021 17:01:06 GMT
Sounds like a nice setup! Makes senses routing wise, and that was basically how I imagined your setup...yes, in that setup your amp is prior to the TV, so that would be unrelated. Thank you for clarifying!
Curious, what is the HDMI output on your system? Is it an HDMI on an audio interface or a video card or integrated like on a laptop? I'm just wondering if there is a better solution than blanking? And now that you mention it, I had a different issue but it may be related?
On Bodhi 5.1 I used to be able to just power my system on and not log in - despite this, my Plex server on that box would come up and I could stream to all my devices. Now on 6.0, I am not able to stream without manually pulling up my server after login. That said, I have not configured Plex much yet. Different topic, I suppose, but the potentially related item is that I am able to lock my system and stream to my devices but only for about 20 minutes - then my ability to reach the server ends, which is surprising as clearly it has activity, etc.. I'm wondering if that is somehow related?
I would be interested in seeing what we can figure out! Thank you, enigma9o7!
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 27, 2021 17:39:55 GMT
It's an old laptop (Sony VAIO VPCF115FM) with HDMI built in, still on Bodhi 5.1.
In fact I do run plex server on it trouble-free, but dunno if it works before login, as I have automatic login enabled, but I don't want to use that for music. (It would require turning on the tv, then loading the plex app which takes 30-60 seconds, both of which I dont want to do, would rather use my computer.)
Under windows I could play music directly to my AVR thru the network. (just right click on a song and the "play on" option lists my AVR automatically, and a queue comes up i can add more songs to etc). When I switched to linux a few years ago I spent quite a while trying to figure out a way to stream music from my pc to avr but gave up, the only thing I found that worked at all had a 15 second lag which made controlling it from the computer too annoying to be functional (and certainly not good for something like a music video as lipsync etc completely off). So I gave up and hooked up HDMI cable. If I could do it thru network under linux that would be better and I'd eliminate the HDMI cable, and wouldn't need to know the answer to this particular issue.
|
|
|
Post by oblio on May 27, 2021 18:21:43 GMT
Shoot - the laptop bit is the deal breaker I suspect, as that HDMI is going to be used as a video card and audio interface despite you using the laptop's monitor. Are you able to see if the audio continues on the system using headphones, that is, not using HDMI and see if playback continues (via 1/16" jack, for example)? That could isolate the issue to purely HDMI or possibly internal audio routing. Not sure if that makes sense...
Anyway, that's all I can think of. From working in small studios, we had to do a lot of routing with inputs and outputs, but we were using interfaces, not integrated HDMI. Sorry I can't be more help.
I'm not familiar with on the back-end of what blanking is doing with processes and whatnot; maybe someone more familiar with the details could isolate what is taking place?
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on May 27, 2021 19:53:58 GMT
And the easy workaround is just disable the screenblank and remember to turn off my display when I walk away, which I do remember 95% of the time, but not always.
I understand what you mean about headphones/etc and pretty sure they'd work fine, internal speakers keep working fine. But even if they do, I don't really wanna hook things up that way anyway, I'd rather just deal with no screenblank. [Various reasons, all personal preference.... like the hdmi cable plugs in on the left side of laptop which is out of my way and next to edge of desk I normally use, but the analog audio output is to the right which is where i have my trackball and the rest of desk and dont want wires around there (optical audio output is on that side too which i've never tested)... I do on rare occasions use my tv as a 2nd monitor for things I cant cast (like when my kid is reading me books from their online school stuff or something), and in those cases would still want to use hdmi for video, so its nice to only have one cable to have to plug in....]
|
|
|
Post by oblio on May 27, 2021 20:24:39 GMT
And the easy workaround is just disable the screenblank and remember to turn off my display when I walk away, which I do remember 95% of the time, but not always. Honestly, that's what I do.
In my case, am a very lazy user which generally creates more work for me...manual updates, turning on/off monitors, manually starting servers, manually connecting network drives...
All that said, I'm here to learn more and your question got me thinking about how to separate audio from the signal through HDMI, if possible. Fun thought experiment!
Given the option, for quality, if you start digital, generally you want to stay digital, especially if most of your equipment is (which it certainly sounds like). If you are piping to analogue, it may not be as critical. Lots of factors and it all depends on what you are going for. Regardless, thank you for entertaining my thoughts!
|
|