<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
&gt; It's part of the Ohm plugins.<br>&gt; http://meego.gitorious.org/maemo-multimedia/ohm-plugins-misc/blobs/master/plugins/accessories/wired.c<br>&gt; <br>&gt; I am not sure this code is current, someone from Nokia would need to<br>&gt; comment But you'll see all kinds of jack detection in there.<br>&gt; -Pierre<br><br>Thank you Pierre.<br><br>Based on wired.c I have made my own little test (jacksensetest.c) and it works fine on my Ubuntu PC. It finds jack at /dev/input/event13 (HDA Intel HP Out at Ext Left Jack) and is able to tell if headphones are connected or disconnected. <br><br>Unfortunately it does not work on the Meego PC. It runs through /dev/input/event0 to event9, mice and mouse0/1 but does not find "Jack" using check_device():<br><div>bash-4.0$ ./jacksensetest</div><div>Running through devices...</div><div>discover jack device by matching 'Jack'</div><div>/dev/input/event8</div><div>Checking device, pattern: Jack, name: , fd;4</div><div>/dev/input/mouse1</div><div>Checking device, pattern: Jack, name: HID 413c:3010, fd;4</div><div>/dev/input/event7</div><div>Checking device, pattern: Jack, name: HID 413c:3010, fd;4</div><div>/dev/input/event9</div><div>Checking device, pattern: Jack, name: Dell Dell USB Keyboard, fd;4</div><div>/dev/input/event6</div><div>Checking device, pattern: Jack, name: CNF9011, fd;4</div><div>/dev/input/mouse0</div><div>Checking device, pattern: Jack, name: SynPS/2 Synaptics TouchPad, fd;4</div><div>/dev/input/event5</div><div>Checking device, pattern: Jack, name: SynPS/2 Synaptics TouchPad, fd;4</div><div>/dev/input/event4</div><div>Checking device, pattern: Jack, name: AT Translated Set 2 keyboard, fd;4</div><div>/dev/input/event3</div><div>Checking device, pattern: Jack, name: Video Bus, fd;4</div><div>/dev/input/event2</div><div>Checking device, pattern: Jack, name: Power Button, fd;4</div><div>/dev/input/event1</div><div>Checking device, pattern: Jack, name: Sleep Button, fd;4</div><div>/dev/input/event0</div><div>Checking device, pattern: Jack, name: Lid Switch, fd;4</div><div>/dev/input/mice</div><div>Checking device, pattern: Jack, name: Power Button, fd;4</div><div>failed to open jack detection device</div><div>could not initialize 'jack'<br><br>Should I be looking for something else than "Jack"? How do I know what to look for?<br><br>/Kim<br></div><br>                                               </body>
</html>