The following warnings occurred:
Warning [2] Trying to access array offset on value of type bool - Line: 50 - File: inc/plugins/mention.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/mention.php 50 errorHandler->error
/inc/plugins/MentionMe/forum.php 212 mentionGetMyAlertsStatus
/inc/plugins/MentionMe/forum.php 16 mentionMeInitialize
/inc/plugins/mention.php 30 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 50 - File: inc/plugins/mention.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/mention.php 50 errorHandler->error
/inc/plugins/MentionMe/forum.php 212 mentionGetMyAlertsStatus
/inc/plugins/MentionMe/forum.php 16 mentionMeInitialize
/inc/plugins/mention.php 30 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.2.25 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$mention - Line: 524 - File: inc/plugins/MentionMe/forum.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php 524 errorHandler->error
/inc/class_plugins.php 142 mentionMeBuildPopup
/global.php 479 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$mention_autocomplete_loading - Line: 5 - File: inc/plugins/MentionMe/forum.php(557) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php(557) : eval()'d code 5 errorHandler->error
/inc/plugins/MentionMe/forum.php 557 eval
/inc/class_plugins.php 142 mentionMeBuildPopup
/global.php 479 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.2.25 (Linux)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.2.25 (Linux)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.2.25 (Linux)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 25 - File: global.php(872) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(872) : eval()'d code 25 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 937 - File: global.php PHP 8.2.25 (Linux)
File Line Function
/global.php 937 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5196 - File: inc/functions.php PHP 8.2.25 (Linux)
File Line Function
/inc/functions.php 5196 errorHandler->error
/global.php 937 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.2.25 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 937 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.2.25 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1404 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.25 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.25 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "60hz" - Line: 173 - File: inc/plugins/MentionMe/forum.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php 173 errorHandler->error
/inc/plugins/MentionMe/forum.php 92 mentionTryName
[PHP]   mentionDetect
/inc/plugins/MentionMe/forum.php 49 preg_replace_callback
/inc/class_plugins.php 142 mentionMeParseMessage
/inc/class_parser.php 217 pluginSystem->run_hooks
/printthread.php 179 postParser->parse_message
Warning [2] Trying to access array offset on value of type bool - Line: 93 - File: inc/plugins/MentionMe/forum.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php 93 errorHandler->error
[PHP]   mentionDetect
/inc/plugins/MentionMe/forum.php 49 preg_replace_callback
/inc/class_plugins.php 142 mentionMeParseMessage
/inc/class_parser.php 217 pluginSystem->run_hooks
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.25 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.25 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "60hz" - Line: 173 - File: inc/plugins/MentionMe/forum.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php 173 errorHandler->error
/inc/plugins/MentionMe/forum.php 92 mentionTryName
[PHP]   mentionDetect
/inc/plugins/MentionMe/forum.php 49 preg_replace_callback
/inc/class_plugins.php 142 mentionMeParseMessage
/inc/class_parser.php 217 pluginSystem->run_hooks
/printthread.php 179 postParser->parse_message
Warning [2] Trying to access array offset on value of type bool - Line: 93 - File: inc/plugins/MentionMe/forum.php PHP 8.2.25 (Linux)
File Line Function
/inc/plugins/MentionMe/forum.php 93 errorHandler->error
[PHP]   mentionDetect
/inc/plugins/MentionMe/forum.php 49 preg_replace_callback
/inc/class_plugins.php 142 mentionMeParseMessage
/inc/class_parser.php 217 pluginSystem->run_hooks
/printthread.php 179 postParser->parse_message



MME4CRT Forum
Linux: using xrandr to display only a segment of the screen - Printable Version

+- MME4CRT Forum (https://mme4crt.alphanudesign.co.uk/forum)
+-- Forum: Off Topic (https://mme4crt.alphanudesign.co.uk/forum/forumdisplay.php?fid=9)
+--- Forum: Discussion (https://mme4crt.alphanudesign.co.uk/forum/forumdisplay.php?fid=16)
+--- Thread: Linux: using xrandr to display only a segment of the screen (/showthread.php?tid=44)



Linux: using xrandr to display only a segment of the screen - ArcadeTV - 03-07-2019

Since I moved pretty much all my retrogaming/emulation activity to linux, I see and learn new things every day...

Yesterday I came across this post:
https://www.reddit.com/r/crtgaming/comments/4o715m/scumm_games_on_scummvm_at_240p_via_vga_on_a_pvm/

I had no idea xrandr was able to feed a predefined segment of a video-output to a monitor.


Code:
xrandr --output VGA1 --scale-from 320x240 --pos 1x1

With my intel GPU I'm using Super Resolutions (mostly 2560x240) and often times I see the output-image is scaled out of proportions when running apps like desktops, emulationstation gui, scummvm etc.

What I did is switching to a super resolution and then run the proposed code to correct the issue.
I was excited to realize that it worked out of the box and the image on my crt looked great.

Now I guess there has to be a drawback using this method - there's got to be, because nobody would use super resolutions instead, right?
Could it be that this method may cause vsync and/or tearing issues?
Since I only tested it with mostly static scenarios like scummvm, maldita castilla for linux and the lxde desktop I haven't seen any issues.

So, let me rephrase the question...
If I was able to create a perfect 320x240@60Hz (or ANY other!) output on my crt with this method, why would I bother to use super resolutions?

I think a super resolution is only needed in the first place to prepare the canvas in terms of height.. Using the segmented output I could create any width I could think of. I have to admit, I have no idea how refresh rates are handled within this concept.

Maybe I'm wrong about this - could somebody please enlighten me?


RE: Linux: using xrandr to display only a segment of the screen - alphanu - 03-07-2019

(03-07-2019, 02:52 PM)ArcadeTV Wrote: Since I moved pretty much all my retrogaming/emulation activity to linux, I see and learn new things every day...

Yesterday I came across this post:
https://www.reddit.com/r/crtgaming/comments/4o715m/scumm_games_on_scummvm_at_240p_via_vga_on_a_pvm/

I had no idea xrandr was able to feed a predefined segment of a video-output to a monitor.


Code:
xrandr --output VGA1 --scale-from 320x240 --pos 1x1

With my intel GPU I'm using Super Resolutions (mostly 2560x240) and often times I see the output-image is scaled out of proportions when running apps like desktops, emulationstation gui, scummvm etc.

What I did is switching to a super resolution and then run the proposed code to correct the issue.
I was excited to realize that it worked out of the box and the image on my crt looked great.

Now I guess there has to be a drawback using this method - there's got to be, because nobody would use super resolutions instead, right?
Could it be that this method may cause vsync and/or tearing issues?
Since I only tested it with mostly static scenarios like scummvm, maldita castilla for linux and the lxde desktop I haven't seen any issues.

So, let me rephrase the question...
If I was able to create a perfect 320x240@60Hz (or ANY other!) output on my crt with this method, why would I bother to use super resolutions?

I think a super resolution is only needed in the first place to prepare the canvas in terms of height.. Using the segmented output I could create any width I could think of. I have to admit, I have no idea how refresh rates are handled within this concept.

Maybe I'm wrong about this - could somebody please enlighten me?

This is something I am working with at the moment. Scale from does not give you a native "320x240p" resolution. Instead, it adjust the aspect ration of the frame buffer. So, your physical resolution is still a supper resolution "2560x240p" but with the frame buffer aspect ratio at 11:1 in this instance. I hope this clears things up for you?

The reason for MME4CRT be a lot more advanced in Linux compared to windows, is because there are some many option available to manipulate the OS which are locked down in window. 

The main issue with adding this method is having to rewrite a lot of CRTSwirchRes core as this handles the aspect ratios in RetroArch. Which will brak things if I start changing the physical frame buffer options.