NetBSD Problem Report #58946
From www@netbsd.org Mon Dec 30 09:23:58 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D679A1A9238
for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Dec 2024 09:23:57 +0000 (UTC)
Message-Id: <20241230092356.9D2D31A923A@mollari.NetBSD.org>
Date: Mon, 30 Dec 2024 09:23:56 +0000 (UTC)
From: scole@sdf.org
Reply-To: scole@sdf.org
To: gnats-bugs@NetBSD.org
Subject: setxkbmap -query fails with RANDR/RRGetOutputInfo error
X-Send-Pr-Version: www-1.0
>Number: 58946
>Category: xsrc
>Synopsis: setxkbmap -query fails with RANDR/RRGetOutputInfo error
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: xsrc-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 30 09:25:00 +0000 2024
>Originator: scole
>Release: 10.1_STABLE
>Organization:
none
>Environment:
NetBSD axel 10.1_STABLE NetBSD 10.1_STABLE (GENERIC) #0: Sat Dec 21 13:10:18 +07 2024 scole@axel:/home/scole/nbsd/cvs/10/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
setxkbmap -query
is failing with this error:
X Error of failed request: BadRROutput (invalid Output parameter)
Major opcode of failed request: 141 (RANDR)
Minor opcode of failed request: 9 (RRGetOutputInfo)
Serial number of failed request: 12
Current serial number in output stream: 12
I originally posted this issue here:
https://mail-index.netbsd.org/tech-x11/2024/12/22/msg002507.html
>How-To-Repeat:
run "setxkbmap -query" (before any xrandr has been run?)
>Fix:
Apparently, there is a fix in HEAD for setxkbmap.c, version 1.3.4 which hasn't made it to 10.1 yet:
https://mail-index.netbsd.org/tech-x11/2024/12/30/msg002508.html
(which I think is CVS version 1.1.1.8)
A workaround is to run
'xrandr >/dev/null'
before the setxkbmap command.
Thank you to RVP for information and work around
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.