Red Hat Bugzilla – Bug 205719
tpb shows OSD on *all* X11 server working with that X11 client
Last modified: 2007-11-30 17:11:42 EST
Description of problem:
I have one (main) ThinkPad which runs the X11 clients for an external XServer.
By default, tpb displays its OSD also on this other XServer, which makes no sense.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
0. Find a ThinkPad with gdm and tpb.
1. Setup gdm to allow xdmcp.
2. Setup firewall to allow network access from external X11 server.
3. Start X11 server on another box.
4. Press the "change display brightness" or "change sound volume" buttons on the
The "Brightness" or "Volume" tpb OSD will now show on *all* connected XServers.
The tpb OSD should show only on the XServer running on the main ThinkPad.
After all, the tpc OSD only displays the status of the main ThinkPad, and
My new, working /etc/X11/xinit/xinitrc.d/tpb.sh, which makes the tpb OSD show
only on the main ThinkPad (on all XServers actually running on that hardware),
but not on any external XServers:
if echo "$DISPLAY" | grep "^:" > /dev/null; then
This uses the fact that local DISPLAYs are something like ":0", ":0.0", ":1.1",
whereas external DISPLAYs are something like "192.168.15.35:0" or
Thanks for the report. I will do some testing and see if your script or some
other way to handle this case is the best way forward.
Sorry that this report languished so long... ;(
I don't see off hand any better way to handle this than your modification to the
tpb.sh script, so I have added that into a new release that I just pushed out...
It should show up on mirrors in the next few days.
If you like, you can grab a (unsigned) copy from the build system to test:
Please let me know if you spot any problems.
This version has been out with no reported problems for a few days,
so I am going to go ahead and close this bug report.
If you spot any problems with it feel free to re-open this bug or file a new one.
Thanks again for the report...