<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Theo</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Theo"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Theo"/>
	<updated>2026-05-06T02:09:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Template_talk:Cmd&amp;diff=9675</id>
		<title>Template talk:Cmd</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Template_talk:Cmd&amp;diff=9675"/>
		<updated>2013-12-30T22:27:46Z</updated>

		<summary type="html">&lt;p&gt;Theo: Equal sign&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;What was the reason that this template was changed? Now it look not much different than the standard mediawiki format for a line with a prefixed whitespace.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{Cmd|test command}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
{{Cmd|test command}}&lt;br /&gt;
 test command&lt;br /&gt;
--[[User:Fab|Fab]] 04:10, 7 March 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:4em&amp;quot;&amp;gt;&lt;br /&gt;
Probably I should have proposed the change first rather than just pushing it. I was trying to get visual consistency between the two block formats you exhibited above, and some new templates I was introducing, primarily [[Template:Cat]]. See [[User:Dubiousjim/Cheatsheet#Block_elements]] for some samples. As I informally browsed this wiki, it seemed like many pages just used the second, space-prefixed format for giving commands to enter---that is, the usage of [[Template:Cmd]] across this wiki seemed very incomplete. So I thought it might work best to have a presentation that was somewhat distinct but not jarringly so. That way, habituation to the [[Template:Cmd]] format needn&#039;t make it stand out so much when reading a page that says:&lt;br /&gt;
&lt;br /&gt;
 type these commands&lt;br /&gt;
&lt;br /&gt;
(I can appreciate the merits of the other argument, though, that says it should stand out more when a wiki page doesn&#039;t use the [[Template:Cmd]], so that someone can more easily notice it and perhaps change it to do so.)&lt;br /&gt;
&lt;br /&gt;
What do you think might work better? Using a darker background, like the template had formerly? Using a different border? Just don&#039;t worry about the considerations I cite, and go back to the original?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Dubiousjim|Dubiousjim]] 19:14, 7 March 2012 (UTC)&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Made the background darker, as in the original. -- [[User:Dubiousjim|Dubiousjim]] 06:45, 8 March 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
=Equal sign=&lt;br /&gt;
Is it normal that I can&#039;t use &amp;quot;=&amp;quot; within this template? With &amp;lt;pre&amp;gt;{{cmd|=}}&amp;lt;/pre&amp;gt; I get &amp;lt;pre&amp;gt;{{{1}}}&amp;lt;/pre&amp;gt; I have to write &amp;lt;pre&amp;gt;{{cmd|&amp;amp;#38;#61;}}&amp;lt;/pre&amp;gt; to get &amp;lt;pre&amp;gt;=&amp;lt;/pre&amp;gt;--[[User:Theo|Theo]] ([[User talk:Theo|talk]]) 22:27, 30 December 2013 (UTC)&lt;/div&gt;</summary>
		<author><name>Theo</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Serial_mouse&amp;diff=9674</id>
		<title>Serial mouse</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Serial_mouse&amp;diff=9674"/>
		<updated>2013-12-30T22:26:53Z</updated>

		<summary type="html">&lt;p&gt;Theo: how to make use of a serial mouse&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
A mouse connected to the serial port will not be recognized by an X.Org server automatically. In &amp;lt;code&amp;gt;/var/log/Xorg.0.log&amp;lt;/code&amp;gt; there will be a message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(II) The server relies on udev to provide the list of input devices.&lt;br /&gt;
If no devices become available, reconfigure udev or disable AutoAddDevices.&lt;br /&gt;
&amp;lt;/pre&amp;gt;   &lt;br /&gt;
An existing &amp;lt;code&amp;gt;/etc/X11/xorg.conf&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;AutoAddDevices&amp;lt;/code&amp;gt; enabled will result in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(WW) Hotplugging is on, devices using drivers &#039;kbd&#039;, &#039;mouse&#039; or &#039;vmmouse&#039; will be disabled.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will describe two ways of getting an usable serial mouse under X.org. In our example we have a Logitec serial mouse of the model M/N: M-M30 associated to the device &amp;lt;code&amp;gt;/dev/ttyS0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=Getting information about the mouse=&lt;br /&gt;
&lt;br /&gt;
If the protocol for the serial mouse is unkown, the command {{cmd|mouse-test /dev/ttyS0}} from the package &amp;lt;code&amp;gt;gpm&amp;lt;/code&amp;gt; can be used to get the necessary information. The program is interactive and will print at the end a message like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Your mouse seems to be a &#039;mman&#039; one  on &amp;quot;/dev/ttyS0&amp;quot; (24 matches)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &amp;lt;code&amp;gt;man&amp;lt;/code&amp;gt; page &amp;lt;code&amp;gt;gpm-types&amp;lt;/code&amp;gt; contain a list of the protocols. In our case the lines&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       mman Mouseman&lt;br /&gt;
              The  protocol  used  by the new Logitech devices with three but-&lt;br /&gt;
              tons.  It is backward compatible with the Microsoft protocol, so&lt;br /&gt;
              if  your mouse has three buttons and works with -t ms or similar&lt;br /&gt;
              decoders you may try -t mman instead to use the  middle  button.&lt;br /&gt;
              This  mouse  decoder  accepts  standard serial options, although&lt;br /&gt;
              they should not be needed.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
gives us more information about the protocol. We can test the mouse in a virtual console by running:&lt;br /&gt;
{{cmd|gpm -m /dev/ttyS0 -t mman}}&lt;br /&gt;
&lt;br /&gt;
=Solution: Inform the Linux input subsystem=&lt;br /&gt;
&lt;br /&gt;
The serial port should already be known to udev:&lt;br /&gt;
{{Cmd|udevadm info --name&amp;amp;#61;/dev/ttyS0 --query&amp;amp;#61;path}}&lt;br /&gt;
&amp;lt;pre&amp;gt;/devices/platform/serial8250/tty/ttyS0&amp;lt;/pre&amp;gt;&lt;br /&gt;
But in the output of {{cmd|cat /proc/bus/input/devices}} there is no hint of its existence. Installing the package &amp;lt;code&amp;gt;linuxconsoletools&amp;lt;/code&amp;gt; from the testing repository and executing&lt;br /&gt;
{{cmd|inputattach --mouseman /dev/ttyS0}}&lt;br /&gt;
should give us a working mouse for the X server.&lt;br /&gt;
The command&lt;br /&gt;
{{cmd|inputattach --help}} prints a list of the available protocols. In our case the line&lt;br /&gt;
&amp;lt;pre&amp;gt;  --mouseman       -mman     3-button Logitech / Genius mouse&amp;lt;/pre&amp;gt;&lt;br /&gt;
tells us which one to use. Now the output of {{cmd|cat /proc/bus/input/devices}} should contain a section like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
I: Bus=0013 Vendor=0004 Product=0001 Version=0100&lt;br /&gt;
N: Name=&amp;quot;Logitech M+ Mouse&amp;quot;&lt;br /&gt;
P: Phys=ttyS0/serio0/input0&lt;br /&gt;
S: Sysfs=/devices/platform/serial8250/tty/ttyS0/serio8/input/input9&lt;br /&gt;
U: Uniq=&lt;br /&gt;
H: Handlers=event2 mouse0 &lt;br /&gt;
B: PROP=0&lt;br /&gt;
B: EV=7&lt;br /&gt;
B: KEY=70000 0 0 0 0 0 0 0 0&lt;br /&gt;
B: REL=3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To start the &amp;lt;code&amp;gt;inputattach&amp;lt;/code&amp;gt; command automatically create a file &amp;lt;code&amp;gt;/etc/local.d/sermouse.start&amp;lt;/code&amp;gt; with the content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
inputattach --daemon --mouseman /dev/ttyS0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make it executable and add the service &amp;lt;code&amp;gt;local&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; runlevel:&lt;br /&gt;
{{cmd|rc-update add local default}}&lt;br /&gt;
Then the command&lt;br /&gt;
{{cmd|rc}} should start the new service. If you want to stop &amp;lt;code&amp;gt;inputattach&amp;lt;/code&amp;gt; when stopping the &amp;lt;code&amp;gt;local&amp;lt;/code&amp;gt; service, create an executable file &amp;lt;code&amp;gt;/etc/local.d/sermouse.stop&amp;lt;/code&amp;gt; with content&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
killall inputattach&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively you can create a script in &amp;lt;code&amp;gt;/etc/init.d&amp;lt;/code&amp;gt; to define a service for the serial mouse.&lt;br /&gt;
&lt;br /&gt;
=Solution: Configure the X.org server=&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t have a &amp;lt;code&amp;gt;/etc/X11/xorg.conf&amp;lt;/code&amp;gt;, then generate one with the command&lt;br /&gt;
{{cmd|Xorg -configure}}&lt;br /&gt;
and modify (and move) the resulting file &amp;lt;code&amp;gt;/root/xorg.conf.new&amp;lt;/code&amp;gt; to get a running X server. For instance you might have to know the correct driver for the &amp;lt;code&amp;gt;&amp;quot;InputDevice&amp;quot;&amp;lt;/code&amp;gt; section for your graphics card. Include the section&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
 Option &amp;quot;AutoAddDevices&amp;quot; &amp;quot;False&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to disable hotplugging and set the &amp;lt;code&amp;gt;&amp;quot;Device&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;Protocol&amp;quot;&amp;lt;/code&amp;gt; options in the &amp;lt;code&amp;gt;&amp;quot;InputDevice&amp;quot;&amp;lt;/code&amp;gt; section for your mouse. In our case we have:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Option &amp;quot;Protocol&amp;quot; &amp;quot;MouseMan&amp;quot;&lt;br /&gt;
 Option &amp;quot;Device&amp;quot; &amp;quot;/dev/ttyS0&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then restart the X server. For instance:&lt;br /&gt;
{{cmd|rc-service lxdm restart}}&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
*[http://wiki.archlinux.org/index.php/serial_input_device_to_kernel_input Serial input device to kernel input - ArchWiki]&lt;br /&gt;
*[http://bugs.alpinelinux.org/issues/2532 Feature #2532: Request for package: linuxconsoletools]&lt;br /&gt;
*[http://lists.alpinelinux.org/alpine-devel/1891.html How to run script at startup (alpine-devel Archives)]&lt;br /&gt;
*[http://wiki.gentoo.org/wiki/Local.d local.d GEntoo Wiki]&lt;/div&gt;</summary>
		<author><name>Theo</name></author>
	</entry>
</feed>