Re: New Xorg - different key-codes

2020-03-12 Thread Alexander Leidinger via freebsd-stable

Hi,

This command sets the keyboard layout. You are supposed to set the keyboard 
layout which matches the physical layout of the hardware. This hadn't 
changed, it's a fundamental part of X11 since I know it (X11 6.5) and even 
before...


For those which had an explicit setting in xorg.conf (like me) but switched 
now to nothing or the "match" snippets for mouse or kbd: you can specify 
this already in the config. Here is what I use:

---snip---
Donnerstag, 12. März 2020, 10:21:40
{1}  [video:/]
(201) root@ttypts/1 # cat /usr/local/etc/X11/xorg.conf.d/kbd.conf Section 
"InputClass"

   Identifier "Keyboard0"
   MatchIsKeyboard "on"
   MatchDevicePath "/dev/input/event*"
   Driver "libinput"
   Option "XkbModel" "pc105"
   Option "XkbLayout" "de"
   Option "XkbRules" "evdev"
EndSection


Donnerstag, 12. März 2020, 10:22:05
{0}  [video:/]
(202) root@ttypts/1 # cat /usr/local/etc/X11/xorg.conf.d/mouse.conf
Section "InputClass"
   Identifier "Mouse0"
   MatchIsPointer "on"
   MatchDevicePath "/dev/input/event*"
   Driver "libinput"
# Option "Protocol" "auto"
# Option "Device" "/dev/sysmouse"
   Option "ZAxisMapping" "4 5 6 7"
EndSection
---snip---

Note, I use this in sysctl.conf:
---snip---
# enable hardware devices in evdev
kern.evdev.rcpt_mask=12
---snip---

When I did that, I just validated that I was able to login to KDE (the 
particular X11 is feeding a home-cinema setup and is not used often, I just 
decided to update it as long as I remembered there was a change to xorg 
with a config impact). I didn't check any up/down/umlauts, I just plain 
assumed it works (and I still assume it does). The above is just meant to 
provide some info how to make it work globally instead of having a setting 
in each local startup per user.


Bye,
Alexander.

--
Send from a mobile device, please forgive brevity and misspellings.

Am 11. März 2020 23:07:55 schrieb Bob Willcox :


On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:

???
>> On 11. Mar 2020, at 10:29, Mark Martinec
>>  wrote:
> ???
>>
>>> I just updated my laptop from source, and somewhere along the way
>>> the key-codes Xorg sees changed.
>> Indeed.  This doesn't just affect -CURRENT: it happened to me on
>> -STABLE last week, so I'm copying that list too.
>
> And a "Down" key now opens and closes a KDE "Application Launcher",
> alternatively with its original function (which makes editing a
> frustration).
>
>  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244354
>
>

This *might* help you:

https://lists.freebsd.org/pipermail/freebsd-x11/2020-February/025046.html

(Short version: run setxkbmap in ~/.xinitrc, e.g.,
setxkbmap -model pc105 -layout de)


Will running that command return my key mappings back to what they use to be?



--
Bob Willcox| It's possible that the whole purpose of your life is to
b...@immure.com | serve as a warning to others.
Austin, TX |
___
freebsd-curr...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"




___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: FBSD 12.1 - LightDM don't grab keyboard input & Xfce4 window decorator problem

2020-03-12 Thread Mario Olofo
>  This depends on how you updated it. I could guess you used
>  freebsd-update at some point, but only you can know for sure.
>

Indeed I did a freebsd-update, but I thought it just update the system to
patch vulnerabilities, not change it to release...

To check which version of FreeBSD you are using should be possible with
> freebsd-version(1), check it's man page, I'm not using stable versions,
> only releases and current, and I'm not sure what the output is on stable.
>
> Migrating from quarterly to latest is done by configuring pkg, you
> should read the full pkg.conf(5) man page. The EXAMPLES section has
> examples clearly explaining what you are asking for.
>
>
Thank you, I should have take a look on man pages before ask, after the
change, the pkg was updated successfully.

This all depends on what you did on your system, any suggestion can only
> be generic. You need to know your system condition.
>
> You stated that you mixed binary packages installed via pkg from the
> official repositories with locally built ports. As I said this is not
> really supported, and if you only compiled locally part of Xorg and
> mixed it with quarterly packages you have an high risk of having
> inconsistent binaries on your system.
>
> Check your logs for useful errors.
>

Yeah, I mixed pkg and ports but after that I removed all ports packages and
reinstalled the pkg version, so the system reverted to a safe/stable state.
After the change to latest, the pkg upgrade found a lot of files to update,
including xorg-server, xfce and xorg-drivers.
But, after the update to latest, only my usb mouse is detected on xserver
now...
The log don't have any errors, the Xorg log don't have any output about
touchpad and laptop keyboard too.

The glitch in window titles was fixed after the update, so this is now ok
=).
The only problem now is the keyboard/touchpad in X.
I need to rebuild the kernel too? Any other command I can run to check if I
need something more?

Thank you

Mario
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: New Xorg - different key-codes

2020-03-12 Thread Bob Willcox
On Wed, Mar 11, 2020 at 11:46:49PM +0100, Michael Gmelin wrote:
> 
> 
> > On 11. Mar 2020, at 23:25, Bob Willcox  wrote:
> > 
> > ???On Wed, Mar 11, 2020 at 11:04:18PM +0100, Michael Gmelin wrote:
> >> 
> >> 
>  On 11. Mar 2020, at 22:58, Bob Willcox  wrote:
> >>> 
> >>> ???On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:
>  ???
> >> On 11. Mar 2020, at 10:29, Mark Martinec
> >>  wrote:
> > ???
> >> 
> >>> I just updated my laptop from source, and somewhere along the way
> >>> the key-codes Xorg sees changed.
> >> Indeed.  This doesn't just affect -CURRENT: it happened to me on
> >> -STABLE last week, so I'm copying that list too.
> > 
> > And a "Down" key now opens and closes a KDE "Application Launcher",
> > alternatively with its original function (which makes editing a
> > frustration).
> > 
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244354
> > 
> > 
>  
>  This *might* help you:
>  
>  https://lists.freebsd.org/pipermail/freebsd-x11/2020-February/025046.html
>  
>  (Short version: run setxkbmap in ~/.xinitrc, e.g.,
>  setxkbmap -model pc105 -layout de)
> >>> 
> >>> Will running that command return my key mappings back to what they use to 
> >>> be?
> >>> 
> >> 
> >> It might fix the ???Down key opens application launcher??? problem by 
> >> applying the correct keymap (you have to select the correct one, ???de??? 
> >> probably won???t cut it for you). At least it did with xfce, where it was 
> >> important to run it before the wm starts - you could also try running it 
> >> afterwards to see if it makes a difference.
> > 
> > I don't know about that problem. What I'm experiencing is the 
> > Alt-up,down,left,right keys
> > don't work as they used to in my ctwm window manager. They used to move the 
> > current window
> > to the closest boundry in the direction indicated by the key that is also 
> > pressed (while
> > holding the Alt key down). Also, Alt-shift-up,down,left,right would expand 
> > the window in
> > the direction indicated by the key. These actions seem to do nothing now.
> > 
> 
> I don???t know much about ctwm, but why don???t you give it a shot?

I plan to sometime today when I get into the office. But since it's my work 
system and I
am dependent on it to do my job, I've just been a little hesitant.

Bob

-- 
Bob Willcox| It's possible that the whole purpose of your life is to
b...@immure.com | serve as a warning to others.
Austin, TX |
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: New Xorg - different key-codes

2020-03-12 Thread Bob Willcox
On Thu, Mar 12, 2020 at 07:24:42AM -0500, Bob Willcox wrote:
> On Wed, Mar 11, 2020 at 11:46:49PM +0100, Michael Gmelin wrote:
> > 
> > 
> > > On 11. Mar 2020, at 23:25, Bob Willcox  wrote:
> > > 
> > > ???On Wed, Mar 11, 2020 at 11:04:18PM +0100, Michael Gmelin wrote:
> > >> 
> > >> 
> >  On 11. Mar 2020, at 22:58, Bob Willcox  wrote:
> > >>> 
> > >>> ???On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:
> >  ???
> > >> On 11. Mar 2020, at 10:29, Mark Martinec
> > >>  wrote:
> > > ???
> > >> 
> > >>> I just updated my laptop from source, and somewhere along the way
> > >>> the key-codes Xorg sees changed.
> > >> Indeed.  This doesn't just affect -CURRENT: it happened to me on
> > >> -STABLE last week, so I'm copying that list too.
> > > 
> > > And a "Down" key now opens and closes a KDE "Application Launcher",
> > > alternatively with its original function (which makes editing a
> > > frustration).
> > > 
> > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244354
> > > 
> > > 
> >  
> >  This *might* help you:
> >  
> >  https://lists.freebsd.org/pipermail/freebsd-x11/2020-February/025046.html
> >  
> >  (Short version: run setxkbmap in ~/.xinitrc, e.g.,
> >  setxkbmap -model pc105 -layout de)
> > >>> 
> > >>> Will running that command return my key mappings back to what they use 
> > >>> to be?
> > >>> 
> > >> 
> > >> It might fix the ???Down key opens application launcher??? problem by 
> > >> applying the correct keymap (you have to select the correct one, 
> > >> ???de??? probably won???t cut it for you). At least it did with xfce, 
> > >> where it was important to run it before the wm starts - you could also 
> > >> try running it afterwards to see if it makes a difference.
> > > 
> > > I don't know about that problem. What I'm experiencing is the 
> > > Alt-up,down,left,right keys
> > > don't work as they used to in my ctwm window manager. They used to move 
> > > the current window
> > > to the closest boundry in the direction indicated by the key that is also 
> > > pressed (while
> > > holding the Alt key down). Also, Alt-shift-up,down,left,right would 
> > > expand the window in
> > > the direction indicated by the key. These actions seem to do nothing now.
> > > 
> > 
> > I don???t know much about ctwm, but why don???t you give it a shot?
> 
> I plan to sometime today when I get into the office. But since it's my work 
> system and I
> am dependent on it to do my job, I've just been a little hesitant.

Ok, I added this to my ~/.xinitrc file:

setxkbmap -model pc105 -layout us

and my ctwm window adjustment hot keys are working again.  :)

I do wonder why it was deemed ok to change the default behavior for the key 
mappings?
Couldn't the default mappings have remained the same with change to evdev? This 
change
certainly violated the "principle of least surprise" for me.

> 
> Bob
> 
> -- 
> Bob Willcox| It's possible that the whole purpose of your life is to
> b...@immure.com | serve as a warning to others.
> Austin, TX |

-- 
Bob Willcox| It's possible that the whole purpose of your life is to
b...@immure.com | serve as a warning to others.
Austin, TX |
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: New Xorg - different key-codes

2020-03-12 Thread Bob Willcox
On Thu, Mar 12, 2020 at 04:53:32PM +0100, Michael Gmelin wrote:
> 
> 
> On Thu, 12 Mar 2020 10:36:42 -0500
> Bob Willcox  wrote:
> 
> > On Thu, Mar 12, 2020 at 07:24:42AM -0500, Bob Willcox wrote:
> > > On Wed, Mar 11, 2020 at 11:46:49PM +0100, Michael Gmelin wrote:  
> > > > 
> > > >   
> > > > SNIP SNAP
> > > > >> It might fix the ???Down key opens application launcher???
> > > > >> problem by applying the correct keymap (you have to select the
> > > > >> correct one, ???de??? probably won???t cut it for you). At
> > > > >> least it did with xfce, where it was important to run it
> > > > >> before the wm starts - you could also try running it
> > > > >> afterwards to see if it makes a difference.  
> > > > > 
> > > > > I don't know about that problem. What I'm experiencing is the
> > > > > Alt-up,down,left,right keys don't work as they used to in my
> > > > > ctwm window manager. They used to move the current window to
> > > > > the closest boundry in the direction indicated by the key that
> > > > > is also pressed (while holding the Alt key down). Also,
> > > > > Alt-shift-up,down,left,right would expand the window in the
> > > > > direction indicated by the key. These actions seem to do
> > > > > nothing now. 
> > > > 
> > > > I don???t know much about ctwm, but why don???t you give it a
> > > > shot?  
> > > 
> > > I plan to sometime today when I get into the office. But since it's
> > > my work system and I am dependent on it to do my job, I've just
> > > been a little hesitant.  
> > 
> > Ok, I added this to my ~/.xinitrc file:
> > 
> > setxkbmap -model pc105 -layout us
> > 
> > and my ctwm window adjustment hot keys are working again.  :)
> > 
> > I do wonder why it was deemed ok to change the default behavior for
> > the key mappings? Couldn't the default mappings have remained the
> > same with change to evdev? This change certainly violated the
> > "principle of least surprise" for me.
> > 
> >
> 
> I think the change was unavoidable, but it could've been communicated
> better. Then again, time and resources are limited and I'm quite
> grateful the graphics team finally made that necessary push forward.
> 
> I'm curious how people set their keyboard layout in the past though,
> is it possible that the defaults just worked for US users? I always had
> to set it explicitly (setxkbmap or in Xorg.conf), so I was never really
> affected by this change.
> 
> -m
> 
> p.s. What does "setxkbmap -query" show if you start X without setting
> the keymap in .xinitrc?

I'll have to try that when I get home tonight on one of my other systems as I 
really can't
afford to take the time to restart X on this system now...got to get some work 
done.  :)

Bob

> 
> -- 
> Michael Gmelin

-- 
Bob Willcox| It's possible that the whole purpose of your life is to
b...@immure.com | serve as a warning to others.
Austin, TX |
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: FBSD 12.1 - LightDM don't grab keyboard input & Xfce4 window decorator problem

2020-03-12 Thread Mario Olofo
Hello guys,

Good news, all the problems are solved!
Searching and reading about the upgrade of xorg-server, I did what the
installation message says, and the kern.evdev.rcpt_mask=6 was the flag I
needed!
Long history short, I learned 2 things:
1- RTFM and all messages that pop up
2- The devd was replaced by udev, so evdev with libinput is the default for
automatic input detection on X now

Thanks for the help!

Mario

Em qui., 12 de mar. de 2020 às 08:50, Mario Olofo 
escreveu:

>
>  This depends on how you updated it. I could guess you used
>>  freebsd-update at some point, but only you can know for sure.
>>
>
> Indeed I did a freebsd-update, but I thought it just update the system to
> patch vulnerabilities, not change it to release...
>
> To check which version of FreeBSD you are using should be possible with
>> freebsd-version(1), check it's man page, I'm not using stable versions,
>> only releases and current, and I'm not sure what the output is on stable.
>>
>> Migrating from quarterly to latest is done by configuring pkg, you
>> should read the full pkg.conf(5) man page. The EXAMPLES section has
>> examples clearly explaining what you are asking for.
>>
>>
> Thank you, I should have take a look on man pages before ask, after the
> change, the pkg was updated successfully.
>
> This all depends on what you did on your system, any suggestion can only
>> be generic. You need to know your system condition.
>>
>> You stated that you mixed binary packages installed via pkg from the
>> official repositories with locally built ports. As I said this is not
>> really supported, and if you only compiled locally part of Xorg and
>> mixed it with quarterly packages you have an high risk of having
>> inconsistent binaries on your system.
>>
>> Check your logs for useful errors.
>>
>
> Yeah, I mixed pkg and ports but after that I removed all ports packages
> and reinstalled the pkg version, so the system reverted to a safe/stable
> state.
> After the change to latest, the pkg upgrade found a lot of files to
> update, including xorg-server, xfce and xorg-drivers.
> But, after the update to latest, only my usb mouse is detected on xserver
> now...
> The log don't have any errors, the Xorg log don't have any output about
> touchpad and laptop keyboard too.
>
> The glitch in window titles was fixed after the update, so this is now ok
> =).
> The only problem now is the keyboard/touchpad in X.
> I need to rebuild the kernel too? Any other command I can run to check if
> I need something more?
>
> Thank you
>
> Mario
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"