[ANNOUNCE] xf86-input-libinput 0.27.1

2018-04-09 Thread Peter Hutterer
Just one bugfix, a regression introduced by the new property handling in
0.27.0 caused the property to toggle left-handed to not be initialized on
all devices that required it.

Evangelos Foutras (1):
  Fix "left handed" property not set on all pointers

Peter Hutterer (1):
  xf86-input-libinput 0.27.1

git tag: xf86-input-libinput-0.27.1

https://xorg.freedesktop.org/archive/individual/driver/xf86-input-libinput-0.27.1.tar.bz2
MD5:  bdad198a7a9f2ce2c1f90d5e6760462b  xf86-input-libinput-0.27.1.tar.bz2
SHA1: 70ba045975b6484f16d11b32fbbb7e7194d2e0fd  
xf86-input-libinput-0.27.1.tar.bz2
SHA256: d4ad8dc5ad6f962a3f15f61ba9e9f8e37fa0b57eee9f484e2bd721d60ca72ee6  
xf86-input-libinput-0.27.1.tar.bz2
SHA512: 
01379f5d71bf39214c4dff428173512df57fd12e782f3fcde757be923aa0dbf4e010a0395a81bd8e4fb518edc7e05ca1ee64b1e313eb4df5d4990315580609a1
  xf86-input-libinput-0.27.1.tar.bz2
PGP:  
https://xorg.freedesktop.org/archive/individual/driver/xf86-input-libinput-0.27.1.tar.bz2.sig

https://xorg.freedesktop.org/archive/individual/driver/xf86-input-libinput-0.27.1.tar.gz
MD5:  45a678eaf631ba668e10e298f24fb5ea  xf86-input-libinput-0.27.1.tar.gz
SHA1: ebbcab9222fe0d25e1a85598c069fac8954ffd12  
xf86-input-libinput-0.27.1.tar.gz
SHA256: a9c13d7769e2c8f2ec50cb6dd2d6a403807ef028e0ff4695c262bb2a18fd90b7  
xf86-input-libinput-0.27.1.tar.gz
SHA512: 
997c4068709c183bb8aa264c58ecee48c0d6f94e474cbd55204a51dc479bf23989291ac2cc2fc499827ffd66b0e8f226e727a1db55e2cb3887fd2689e3af06b2
  xf86-input-libinput-0.27.1.tar.gz
PGP:  
https://xorg.freedesktop.org/archive/individual/driver/xf86-input-libinput-0.27.1.tar.gz.sig



signature.asc
Description: PGP signature
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Unsupported locale errors in XOrg

2018-04-09 Thread Prashanth Chandra
Hello,

I'm getting "unsupported locale" warnings and crashes when running
programs such as xterm or dmenu on a clean install of Ubuntu 17.10

Examples:
warning: no locale support
Warning: locale not supported by Xlib, locale set to C

Here's the offending line from dmenu's source code:

if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fputs("warning: no locale support\n", stderr);

I'm not 100% sure but I was told that this looks like an issue in XOrg.
Additionally, the problem disappears if I change my default locale to
en_US.UTF-8 instead of en_HK.UTF-8, which suggests that the issue is
specific to my locale.

Here's the output of running locale:

LANG=en_HK.UTF-8
LANGUAGE=en
LC_CTYPE="en_HK.UTF-8"
LC_NUMERIC="en_HK.UTF-8"
LC_TIME="en_HK.UTF-8"
LC_COLLATE="en_HK.UTF-8"
LC_MONETARY="en_HK.UTF-8"
LC_MESSAGES="en_HK.UTF-8"
LC_PAPER="en_HK.UTF-8"
LC_NAME="en_HK.UTF-8"
LC_ADDRESS="en_HK.UTF-8"
LC_TELEPHONE="en_HK.UTF-8"
LC_MEASUREMENT="en_HK.UTF-8"
LC_IDENTIFICATION="en_HK.UTF-8"
LC_ALL=

Here's the output of running locale -a:

C
C.UTF-8
en_HK.utf8
en_US.utf8
POSIX

Would appreciate any pointers in understanding this issue.

Prashanth
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: XRandr adaptive mirrored screens

2018-04-09 Thread Adam Jackson
On Mon, 2018-04-09 at 18:25 +0200, Prunk Dump wrote:

> Is there a way to make Xorg mirror screens by default and choose
> itself the best resolution ? Ideally a config file that I can deploy
> in all my teacher's station.

In the upcoming 1.20 release there is a feature for this, Option
"PreferCloneMode" in xorg.conf.

- ajax
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

XRandr adaptive mirrored screens

2018-04-09 Thread Prunk Dump
Hi Xorg Team !

I'm the network administrator of a French High school and I'm face of
a new problem since the integration of XRandr in Debian Stretch.

Many of my Debian Stretch stations are teacher's desktop. Each of them
are connected to a screen and to an interactive projector. I would
like that the displays are mirrored with the best common resolution.
But the problem is that :
-> Not all station are the same model. So XRandr does not give always
the same name to the outputs.
-> The screen and the projector are not always connected to the same
display ports (VGA, HDMI, ... )
-> The screen and projector sizes varies. So Xrandr don't always
select the same resolution by default.
-> Not all graphic cards support the same display resolutions.

So actually I need to make a custom Xorg config file for all my
stations individually. For each station :
-> I need to identify the output's name of the screen and of the projector
-> I need to list the supported resolutions for each output
-> I need to choose the best match resolution
-> And finally I need to I add a config file like this :

Section "Monitor"
Identifier  "HDMI-1"
Option  "Primary" "true"
Option "PreferredMode" "1280x1024"
EndSection

Section "Monitor"
Identifier  "VGA-1"
Option "Position" "0 0"
Option "PreferredMode" "1280x1024"
EndSection

Is there a way to make Xorg mirror screens by default and choose
itself the best resolution ? Ideally a config file that I can deploy
in all my teacher's station.

If someone can help me !

Thanks !

Baptiste.
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: Dual monitor problem

2018-04-09 Thread Leslie Katz
Thank you to both Michal Srb and Marius Gedminas for taking the trouble 
to reply to my query and for their suggestions. I tried Michal's 
suggestion, but the same strange behaviour occurred on the laptop's 
display when the edited script ran without the external monitor plugged 
in. Marius's suggestion to adjust the monitors configuration was 
unfortunately beyond my limited skills.


I've now run up the white flag on the startup script idea. Instead, I 
created a custom launcher with an icon that resides on my top panel. 
Now, when I boot up with the external monitor connected, I just click on 
the icon and it runs: xrandr --output eDP1 --off. At least I've reduced 
the steps needed to one simple one.


Thank you again,

Leslie



On 2018-04-09 07:00 AM, xorg-requ...@lists.x.org wrote:

Send xorg mailing list submissions to
xorg@lists.x.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.x.org/mailman/listinfo/xorg
or, via email, send a message with subject or body 'help' to
xorg-requ...@lists.x.org

You can reach the person managing the list at
xorg-ow...@lists.x.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of xorg digest..."


Today's Topics:

1. Re: Dual monitor problem (Michal Srb)
2. Re: Dual monitor problem (Michal Srb)
3. Re: Dual monitor problem (Marius Gedminas)
4. Re: Dual monitor problem (Marius Gedminas)


--

Message: 1
Date: Mon, 09 Apr 2018 09:50:53 +0200
From: Michal Srb 
To: xorg@lists.x.org
Cc: Leslie Katz , x...@freedesktop.org
Subject: Re: Dual monitor problem
Message-ID: <2873766.kkh69jj...@sheogorath.suse.cz>
Content-Type: text/plain; charset="us-ascii"

On sobota 7. dubna 2018 23:13:48 CEST Leslie Katz wrote:

I have a laptop that I usually connect to an external monitor. I use
Ubuntu 16.04 and Gnome 3.18.5. When I do connect to the external
monitor, I like to turn the laptop screen off. I can do that by going to
System Settings, Screen Display, selecting the built-in display and then
clicking "off". I'd like to automate the process. I found a script that
claimed to do that at startup. It's as follows:

#!/bin/bash

sleep 15

EXTERNAL_OUTPUT="DP1"
INTERNAL_OUTPUT="eDP1"

xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
  xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT
--auto
else
  xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi

I made the script a startup application.

It works as advertised when the external monitor is connected. However,
when the external monitor is not connected, I first see my desktop on
the laptop screen as I would like it. Then, when the script wakes up and
runs, the bottom panel on my desktop suddenly jumps to the top of the
screen and comes to rest immediately below the top panel. I can't find
any reports of this happening to anyone else.

If anyone could explain to me why the script is causing this behavior
and tell me how to correct it, I'd be very grateful.

If there is no external output the script reconfigures the internal output and
disables the external output. I can't explain why the desktop environment
reacts to it the way it does, but maybe you could just drop the whole else
branch so nothing happens if there is no external output.

So it would look somehow like this:

...

xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
  xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
fi

...

Michal Srb


--

Message: 2
Date: Mon, 09 Apr 2018 09:50:53 +0200
From: Michal Srb 
To: xorg@lists.x.org
Cc: Leslie Katz , x...@freedesktop.org
Subject: Re: Dual monitor problem
Message-ID: <2873766.kkh69jj...@sheogorath.suse.cz>
Content-Type: text/plain; charset="us-ascii"

On sobota 7. dubna 2018 23:13:48 CEST Leslie Katz wrote:

I have a laptop that I usually connect to an external monitor. I use
Ubuntu 16.04 and Gnome 3.18.5. When I do connect to the external
monitor, I like to turn the laptop screen off. I can do that by going to
System Settings, Screen Display, selecting the built-in display and then
clicking "off". I'd like to automate the process. I found a script that
claimed to do that at startup. It's as follows:

#!/bin/bash

sleep 15

EXTERNAL_OUTPUT="DP1"
INTERNAL_OUTPUT="eDP1"

xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
  xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT
--auto
else
  xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi

I made the script a startup application.

It works as advertised when the external monitor is connected. However,
when the external monitor is not connected, I first see my desktop on
the laptop screen as I would like it. Then, when the script wakes up and
runs, the bottom panel on my desktop suddenly jumps to 

Re: Dual monitor problem

2018-04-09 Thread Marius Gedminas
On Sat, Apr 07, 2018 at 04:13:48PM -0500, Leslie Katz wrote:
> I have a laptop that I usually connect to an external monitor. I use Ubuntu
> 16.04 and Gnome 3.18.5. When I do connect to the external monitor, I like to
> turn the laptop screen off. I can do that by going to System Settings,
> Screen Display, selecting the built-in display and then clicking "off". I'd
> like to automate the process.

GNOME should already automate that.  It remembers your settings for each
set of connected monitor configurations, and when you plug in or unplug
a monitor, it restores them.

The configurations themselves are stored in ~/.config/monitors.xml.  The
process responsible for applying them on hotplug/unplug events is
gnome-settings-daemon.  (Ubuntu might have a unity-settings-daemon which
is a fork of an older version of gnome-settings-daemon, but it does the
same thing.)

There's a way to turn that autoconfiguration off, which might explain
why it's not happening for you.  It's a setting somewhere in
dconf/gsettings, but I don't remember exactly where.

HTH,
Marius Gedminas
-- 
Computers are not intelligent.  They only think they are.


signature.asc
Description: PGP signature
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Re: Dual monitor problem

2018-04-09 Thread Michal Srb
On sobota 7. dubna 2018 23:13:48 CEST Leslie Katz wrote:
> I have a laptop that I usually connect to an external monitor. I use
> Ubuntu 16.04 and Gnome 3.18.5. When I do connect to the external
> monitor, I like to turn the laptop screen off. I can do that by going to
> System Settings, Screen Display, selecting the built-in display and then
> clicking "off". I'd like to automate the process. I found a script that
> claimed to do that at startup. It's as follows:
> 
> #!/bin/bash
> 
> sleep 15
> 
> EXTERNAL_OUTPUT="DP1"
> INTERNAL_OUTPUT="eDP1"
> 
> xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
> if [ $? -eq 0 ]; then
>  xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT
> --auto
> else
>  xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
> fi
> 
> I made the script a startup application.
> 
> It works as advertised when the external monitor is connected. However,
> when the external monitor is not connected, I first see my desktop on
> the laptop screen as I would like it. Then, when the script wakes up and
> runs, the bottom panel on my desktop suddenly jumps to the top of the
> screen and comes to rest immediately below the top panel. I can't find
> any reports of this happening to anyone else.
> 
> If anyone could explain to me why the script is causing this behavior
> and tell me how to correct it, I'd be very grateful.

If there is no external output the script reconfigures the internal output and 
disables the external output. I can't explain why the desktop environment 
reacts to it the way it does, but maybe you could just drop the whole else 
branch so nothing happens if there is no external output.

So it would look somehow like this:

...

xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
 xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
fi

...

Michal Srb
___
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s