Screen goes black on keypress Ctrl+Fn+F2 and doesn't come back

Sometimes when quickly wanting to switch workspaces, muscle memory makes me press the shortcut from Linux which in my case is Ctrl+Fn+F2.

Unfortunately, this makes Haiku desktop go black and I can only hard reboot.
What function is triggered in Haiku with this shortcut?
I am using default settings and only switched Shortcut key to Ctrl:

shortcuts

F2 has a second function “decrease volume” on my laptop keyboard.
The volume shortcuts F1-F3 don’t work on my latest nightly at all, using hrev58785.
The screenshot shortcut works however, just F keys are remapped to default after a short while.

FWIW, ALT+Fn+F2 appears to switch off the backlight of my display. I can vaguely see it when I grab a window and wave it around.
Though for me, pressing any key switches the light back on.

You could try pressing SHIFT + CTRL + ALT + ESC to force the fail-safe video mode.

2 Likes

thanks that worked, I could then select “Cancel” in the dialog and got back to native resolution.

Didn’t know about that fail safe video mode shortcut (could have saved me some hard reboots;-), and this turn off backlight function is not documented for my laptop, strange…
I had this on other laptops (Lenovo iirc), but there it was a dedicated media key function.

The symbol on my F2 key suggests it’s supposed to toogle output to VGA (or HDMI?). Maybe the backlight-off is just a side-effect of this. I don’t have an external monitor connected.

1 Like

Yeah that would make sense but then pressing it again should normally switch back or cycle through screen options like mirror, extend or switch display…

I’ll test this with my TV now.
Maybe this is how I can make HDMI work on my next presentation of SEN with Haiku :pray::muscle:

2 Likes

this gets stranger by the hour:-)
Just tried the shortcut when connected to my TV via HDMI and there it just switched desktops like I originally intended :-o This is now also the case when disconnected, but I haven’t changed any system settings except for the resolution.

However, when checking out the screen settings again, I discovered that Haiku now supports a higher resolution on my laptop screen, so I’m now running at full 1920x1200 :heart_eyes:

3 Likes

Might be worth updating your ticket with this info and syslogs to maybe see what the drivers are detecting and doing. Running logger "TEST: now I press external monitor combo with HDMI connected" and similar should help in discerning what is logged when.

4 Likes

Thanks for bringing logger to my attention, @madmax.

In combination with tail -f /var/syslog will help me collect cleaner logs when actively trying to log things up (opposed to “after the fact” log collection and editing for clarity’s sake).

2 Likes

I had some cases where the workspaces file had invalid resolutions for some workspaces, switching to one such workspace may result in crashing the graphics card. In that case, just reapplying the same (working) videomode to all workspaces from screen preferences would fix it.

This can more easily happen if you use various displays with your machine, and they don’t all support the same resolutions

1 Like

I’m only using the laptop screen but this could be an explanation.
Maybe the trip to a HDMI display caused issues.

I’ve also switched to a higher resolution now which I haven’t seen before.
I haven’t looked into available resolutions for my laptop screen in ages though.
Either the graphics driver got updated and sees the higher resolution now, or the HDMI switch and back unlocked it somehow.