Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Philosophy: A route of many roads leading from nowhere to nothing. -- Ambrose Bierce


computers / alt.os.linux.slackware / Re: Keypad mode switch in X fails

SubjectAuthor
* Keypad mode switch in X failsMike Spencer
+- Re: Keypad mode switch in X failsHenrik Carlqvist
`* Re: Keypad mode switch in X failsJavier
 `- Re: Keypad mode switch in X failsMike Spencer

1
Keypad mode switch in X fails

<87cz5ebie5.fsf@bogus.nodomain.nowhere>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1678&group=alt.os.linux.slackware#1678

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mds...@bogus.nodomain.nowhere (Mike Spencer)
Newsgroups: alt.os.linux.slackware
Subject: Keypad mode switch in X fails
Date: 12 Mar 2023 02:20:18 -0400
Organization: Bridgewater Institute for Advanced Study - Blacksmith Shop
Lines: 57
Message-ID: <87cz5ebie5.fsf@bogus.nodomain.nowhere>
Injection-Info: dont-email.me; posting-host="591cf91e02a9dd169b4db0787d27e9bf";
logging-data="3109222"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9IDa1+kJ+nmBGVh/Nt4JTS1cBopUZj6c="
Cancel-Lock: sha1:UXQRLQK8yK95m/WvnoaY0DFWMa8=
X-Newsreader: Gnus v5.7/Emacs 20.7
 by: Mike Spencer - Sun, 12 Mar 2023 06:20 UTC

I'm unable to make X switch between display modes with CTRL ALT KP+
and CTRL ALT KP-. I have an /etc/X11/xorg.conf.d/xorg.conf file
(details below) with a Screen section and 4 modes in a Display
SubSection.

Following startx, the display comes up in the first mode listed in
that file so it's verified that the monitor, video card and X are able
to interpret and render all of the desired resolutions.

But the CTRL ALT KPx key chords don't work. Only the first mode in
the list becomes available.

I wondered if extensive key reassignment in xmodmap might be a source
of the problem but xvidtune(1) next and prev commands also have no
effect, do not switch modes.

I never got the mode switching to work in 14.{1,2} but it didn't
matter as 1024x768 was perfect for my IBM 19" CRT. Now I need to
be able to do it.

Any pointers welcome. I dread having to revert to hacking xorg,conf a
la 1990s -- surely not?

TIA,
- Mike

Details:

/etc/X11/xorg.conf.d/xorg.conf

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"

DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
# Modes "1280x720" "1920x1080" "1600x900" "1024x768"
Modes "1920x1080" "1280x720" "1600x900" "1024x768"
EndSubSection

EndSection

The monitor's native res is 1920x1080. It nags with popups when
other resolutions are in effect but each of the the 16:9 modes works
if it's the first listed in the Modes line.

The 1024x768 mode is to accommodate a different CRT monitor sometimes
substituted for the 16:9 flatscreen. It also works on the 16:9
monitor if it's the first in the list but, predictably, with distorted
rendering.

Re: Keypad mode switch in X fails

<tukci8$31h26$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1682&group=alt.os.linux.slackware#1682

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Keypad mode switch in X fails
Date: Sun, 12 Mar 2023 11:20:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <tukci8$31h26$2@dont-email.me>
References: <87cz5ebie5.fsf@bogus.nodomain.nowhere>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 12 Mar 2023 11:20:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5dd5ccaf770465d822711078c818ff6b";
logging-data="3195974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V6eQlUSIOBYXv+nO3UsCZ"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:HX/TcjcrQLbxQys8468F92+xRCo=
 by: Henrik Carlqvist - Sun, 12 Mar 2023 11:20 UTC

On Sun, 12 Mar 2023 02:20:18 -0400, Mike Spencer wrote:
> I never got the mode switching to work in 14.{1,2}

It works fine here on my Slackware 14.2 system. If it does matter in any
way, I use LILO to boot a huge kernel with the good old legacy MBR way
and with only the following option in lilo.conf:

append=" vt.default_utf8=0"

Possible things that could make your system behave differently than mine:

1) The graphics driver, I use the VESA driver for my intel chipset, from
Xorg.0.log:

[ 75.491] (II) VESA(0): VESA VBE OEM: Intel(R) SKL/KBL Mobile/Desktop
Graphics Chipset Accelerated VGA BIOS
....
[ 75.540] (II) VESA(0): Modeline "1920x1200"x0.0 154.00 1920...
[ 75.540] (II) VESA(0): Modeline "800x600"x0.0 40.00 800 ...
[ 75.540] (II) VESA(0): Modeline "640x480"x0.0 25.18 640 ...

2) The kernel options, maybe things like kms matter?

3) The boot method, maybe UEFI messes with your resolution?

regards Henrik

Re: Keypad mode switch in X fails

<vzKdnTFEQtublJP5nZ2dnZfqnPGdnZ2d@brightview.co.uk>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1684&group=alt.os.linux.slackware#1684

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 12 Mar 2023 17:16:54 +0000
From: inva...@invalid.invalid (Javier)
Subject: Re: Keypad mode switch in X fails
Newsgroups: alt.os.linux.slackware
References: <87cz5ebie5.fsf@bogus.nodomain.nowhere>
Message-ID: <vzKdnTFEQtublJP5nZ2dnZfqnPGdnZ2d@brightview.co.uk>
Date: Sun, 12 Mar 2023 17:16:54 +0000
Lines: 28
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-mkf8higUAf/62Xki0CmUI6bv0oEMBGw+pvkEt/FgeXLLw6SAiCpRxkrY33KwR7FScgqy1BPiyKEElCQ!f7h9xP6QCUf5YZ+u/suHm1Vvqn6MBGljRoyTY66cemQfk7WfNT3SPcIA9Ms1Lw/wY5tI2gA5zcX0!vzgjKMppr9zmcRS9fpTLfQ+8Oft6
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2059
 by: Javier - Sun, 12 Mar 2023 17:16 UTC

Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
> I never got the mode switching to work in 14.{1,2} but it didn't
> matter as 1024x768 was perfect for my IBM 19" CRT. Now I need to
> be able to do it.
>
> Any pointers welcome. I dread having to revert to hacking xorg,conf a
> la 1990s -- surely not?

Try with xrandr

$ xrandr

Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 32767 x 32767
LVDS1 connected primary (normal left inverted right x axis y axis)
1920x1080 60.00 + 59.93 50.00
1680x1050 59.88
1400x1050 59.98
...
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
LVDS-1-2 disconnected (normal left inverted right x axis y axis)
VGA-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 connected 1920x1200+0+0 ...

This is what I use myself, but the exact comand depends on your hardware.

$ xrandr --output LVDS1 --mode 1920x1080 && xrandr --output DP-1-1 --off

Re: Keypad mode switch in X fails

<874jqpb85m.fsf@bogus.nodomain.nowhere>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1690&group=alt.os.linux.slackware#1690

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mds...@bogus.nodomain.nowhere (Mike Spencer)
Newsgroups: alt.os.linux.slackware
Subject: Re: Keypad mode switch in X fails
Date: 13 Mar 2023 01:13:41 -0300
Organization: Bridgewater Institute for Advanced Study - Blacksmith Shop
Lines: 39
Message-ID: <874jqpb85m.fsf@bogus.nodomain.nowhere>
References: <87cz5ebie5.fsf@bogus.nodomain.nowhere> <vzKdnTFEQtublJP5nZ2dnZfqnPGdnZ2d@brightview.co.uk>
Injection-Info: dont-email.me; posting-host="fcb00401dddfb74adc5746a88924a37b";
logging-data="3748916"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bpid9uTw5WvCafdsuIQm/s9pJoU0rhJI="
Cancel-Lock: sha1:hJovBrsKdZKfuGrhvEOBtkpDcAU=
X-Newsreader: Gnus v5.7/Emacs 20.7
X-Clacks-Overhead: 4GH GNU Terry Pratchett
 by: Mike Spencer - Mon, 13 Mar 2023 04:13 UTC

Javier <invalid@invalid.invalid> writes:

> Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
>
>> I never got the mode switching to work in 14.{1,2} but it didn't
>> matter as 1024x768 was perfect for my IBM 19" CRT. Now I need to
>> be able to do it.
>>
>> Any pointers welcome. I dread having to revert to hacking xorg,conf a
>> la 1990s -- surely not?
>
> Try with xrandr
>
> $ xrandr

TYVM. Problem solved. The documentation is a little unclear.

--mode mode selects a mode. Use either the name or the XID for mode.

What's a valid name? What's an XID? No matter, it works fine.

alias xdef 'xrandr --output VGA-0 --mode 1920x1080'
alias xmed 'xrandr --output VGA-0 --mode 1600x900'
alias xbig 'xrandr --output VGA-0 --mode 1280x720'

gives me three 16:9 modes to accommodate movies, text and big text for
tired eyes. I'm sure I can repeat or vary the trick when I go for a
bigger monitor now that I know about xrandr.

> This is what I use myself, but the exact comand depends on your hardware.
>
> $ xrandr --output LVDS1 --mode 1920x1080 && xrandr --output DP-1-1 --off

Yeah, an example that told me syntax for a mode's "name" might be
x-resXy-res, tnx.

--
Mike Spencer Nova Scotia, Canada

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor