All of lore.kernel.org
 help / color / mirror / Atom feed
* simple newbie question
@ 2003-08-09 21:38 Mario Meríngolo
  2003-08-09 22:00 ` Whit Blauvelt
  2003-08-10 11:53 ` rverduij
  0 siblings, 2 replies; 10+ messages in thread
From: Mario Meríngolo @ 2003-08-09 21:38 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Im starting with this iptables stuff and trying to manage a home network
trough linux and adsl + pppoe 

I have two simple questions.

 

I have my adsl router conected to my eth1

 

When im setting my iptables rules, should I think that eth0 routes packages
through eth1 to ppp0 ?

 

Because, if that is, my drop rules should be defined on eth1, and my input
ones on eth0

 

Our should i think that eth1 does not matter and my reliable is eth0 and my
unreliable ppp0 ?

 

Please forgive my crude english

 

Thanx 

 

 


[-- Attachment #2: Type: text/html, Size: 3369 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: simple newbie question
  2003-08-09 21:38 simple newbie question Mario Meríngolo
@ 2003-08-09 22:00 ` Whit Blauvelt
  2003-08-10 11:53 ` rverduij
  1 sibling, 0 replies; 10+ messages in thread
From: Whit Blauvelt @ 2003-08-09 22:00 UTC (permalink / raw)
  To: Mario Mer?ngolo; +Cc: netfilter

Since eth1 is the closest to the wider Net, that's where to build your
- firewall unless you're also concerned with other people on your home
network having certain sorts of access to your Linux box, in which case you
might want to have rules for eth0 too. Most of us only worry about the
external interface - eth1 in your setup.

I don't use ppp, but for most purposes rules about ppp0 and eth1 should have
the same effect for you, I think.

Whit

On Sat, Aug 09, 2003 at 06:38:32PM -0300, Mario Mer?ngolo wrote:
> Im starting with this iptables stuff and trying to manage a home network
> trough linux and adsl + pppoe 
> 
> I have two simple questions.
> 
>  
> 
> I have my adsl router conected to my eth1
> 
>  
> 
> When im setting my iptables rules, should I think that eth0 routes packages
> through eth1 to ppp0 ?
> 
>  
> 
> Because, if that is, my drop rules should be defined on eth1, and my input
> ones on eth0
> 
>  
> 
> Our should i think that eth1 does not matter and my reliable is eth0 and my
> unreliable ppp0 ?
> 
>  
> 
> Please forgive my crude english
> 
>  
> 
> Thanx 
> 
>  
> 
>  
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: simple newbie question
  2003-08-09 21:38 simple newbie question Mario Meríngolo
  2003-08-09 22:00 ` Whit Blauvelt
@ 2003-08-10 11:53 ` rverduij
  2003-08-11 21:19   ` Rob Verduijn
  1 sibling, 1 reply; 10+ messages in thread
From: rverduij @ 2003-08-10 11:53 UTC (permalink / raw)
  To: Mario Meríngolo; +Cc: netfilter

Hi there,

I used to have adsl I got cable now.

You need to set up a firewall configuration on your ppp0 interface.
(asuming ppp0 is the interface you tunnel through)

Because if you blok on your eth1 and/or eth0 all the traffic still get's 
through to you machine, unless you have issued global rules which blok all 
interfaces.

On your eth1 card you could set up filtering rules if you don't thrust network 
the eth1 network card is connected to.

If you do remember to allow the traffice that builds the vpn (your pppoe 
tunneling).
And if you use a dynamic ip on your eth1 device to allow dhcp traffic as wel.

I'm currently not at my own pc, but I'll post anexample tomorrow for you.

Regards
Rob


Citeren Mario Meríngolo <mmeringolo@arnet.com.ar>:

> Im starting with this iptables stuff and trying to manage a home network
> trough linux and adsl + pppoe 
> 
> I have two simple questions.
> 
>  
> 
> I have my adsl router conected to my eth1
> 
>  
> 
> When im setting my iptables rules, should I think that eth0 routes packages
> through eth1 to ppp0 ?
> 
>  
> 
> Because, if that is, my drop rules should be defined on eth1, and my input
> ones on eth0
> 
>  
> 
> Our should i think that eth1 does not matter and my reliable is eth0 and my
> unreliable ppp0 ?
> 
>  
> 
> Please forgive my crude english
> 
>  
> 
> Thanx 
> 
>  
> 
>  
> 
> 





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: simple newbie question
  2003-08-10 11:53 ` rverduij
@ 2003-08-11 21:19   ` Rob Verduijn
  0 siblings, 0 replies; 10+ messages in thread
From: Rob Verduijn @ 2003-08-11 21:19 UTC (permalink / raw)
  To: netfilter

Hi there,

The script I mentioned before.
It's pretty simple and certainly could do with improvement.
But it keeps the very basic nasty stuff outside and lets you do your
stuff.

ie let everything from the local network through to the internet , and
keep the bad internet out.

Also don't allow anything but the tunnel traffic and if needed the dhcp
traffic on the external interface through.

EXTERNAL_INT="eth?"	# your external interface the one connected to
			# your adsl modem
INTERNAL_INT="eth?"	# your internal network interface

VPN_INT="ppp?"		# this is your pppoe interface (probably ppp0)

INTERNAL_IPADDR="1.2.3.4"# your internal network interface ip address
			# asuming it is static or else cut and paste a
			# bit below
EXTERNAL_IPADDR="1.2.3.4"# your external interface ip address
			# uncomment this line and uncomment below if
			# it is dynamic
# the 3 lines below should all three be unremarked if you got dynamic ip
# EXTERNAL_IPADDR= \
#`ifconfig eth1 | \
#sed -ne's/.*addr:\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'`

VPN_IPADDR="1.2.3.4"     # if you got static ip on the vpn interface
# also unremark 2 lines below if your ppp address is dynamic
#VPN_IPADDR=`ifconfig ppp0| \
#sed -ne 's/ .*addr:\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'`

DHCP_SERVER="1.2.3.4"	# if you have dhcp on your external interface

IPTABLES="/path/to/iptables" 	# use `which iptables` as root to find
				# out what this should be

PPP_PORT="????"			# fill in the port adsl uses (beats me 				# what that
is)
				# this script asumes it connect from the
				# same port to the same port
				# if not adjust the proper source and
				# destination ports

BROADCAST_SRC="0.0.0.0"                 # broadcast source address
BROADCAST_DEST="255.255.255.255"        # broadcast destination address

PRIVPORTS="0:1023"                      # well-known, privileged port
range
UNPRIVPORTS="1024:65535"                # unprivileged port range


# flush all excisting chains and erase all personal chains
CHAINS=`cat /proc/net/ip_tables_names 2>/dev/null`
for I in $CHAINS; do $IPTABLES -t $I -F; done
for I in $CHAINS; do $IPTABLES -t $I -X; done
                                                                                                                             
# default policies
$IPTABLES -t filter -P INPUT DROP
$IPTABLES -t filter -P OUTPUT DROP
$IPTABLES -t filter -P FORWARD DROP

# accept local traffic
$IPTABLES -A INPUT -i lo -d 127.0.0.1 -j ACCEPT
$IPTABLES -A OUTPUT -o lo -d 127.0.0.1 -j ACCEPT

# connection tracking and some logging for the INPUT OUTPUT and
# FORWARD chain
# this allows tracking of excisting connections
# this does not allow new traffic
$IPTABLES -A INPUT  -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -m state --state INVALID -j LOG \
        --log-prefix "INVALID input: "
$IPTABLES -A INPUT -m state --state INVALID -j DROP
$IPTABLES -A OUTPUT -m state --state INVALID -j LOG \
        --log-prefix "INVALID ouput: "
$IPTABLES -A FORWARD -i $INTERNAL_INT -m state --state INVALID -j DROP
$IPTABLES -A FORWARD -i $INTERNAL_INT -m state --state INVALID -j LOG \
        --log-prefix "INVALID ouput: "

#DHCP this bit is for dhcp traffic (if you need it)
# if you don't need it comment it
$IPTABLES -A OUTPUT -o $EXTERNAL_INT -p udp \
             -s $BROADCAST_SRC --sport 68 \
             -d $DHCP_SERVER --dport 67 -j ACCEPT
$IPTABLES -A INPUT -i $EXTERNAL_INT -p udp \
             -s $DHCP_SERVER --sport 67 \
             -d $BROADCAST_DEST --dport 68 -j ACCEPT

#allow ppp traffic on external interface
$IPTABLES -A OUTPUT -o $EXTERNAL_INT -p udp \
        -s $EXTERNAL_IPADDR --sport $PPP_PORT \
        -d $VPN_SERVER --dport $PPP_PORT \
        -m state --state NEW -j ACCEPT
$IPTABLES -A INPUT -i $EXTERNAL_INT -p udp \
        -s $VPN_SERVER --sport $PPP_PORT \
        -d $EXTERNAL_IPADDR --dport $PPP_PORT \
        -m state --state NEW -j ACCEPT

# at this point the gateway accepts only dhcp traffic on
# its external interface and ppp traffic
# the next rule allows all the traffic on the internal
# interface to be forwarded to another interface
# ie no traffice can come in via your external interface 
# or ppp interface (unless it's a reply on your traffic from
# the internal interface

$IPTABLES -A FORWARD -i $INTERNAL_INT -s $INTERNAL_NETWORK \
        -m state --state NEW -j ACCEPT

# no connections to your gateway are allowed in this script
# you need to open up a port for that or log in on the console

# example for ssh connections via the internal interface
# to the gateway machine
$IPTABLES -A INPUT -i $INTERNAL_INT -p tcp \
        -s $INTERNAL_NETWORK --sport $UNPRIVPORTS \
        -d $INTERNAL_IPADDR --dport 22 \
        -m state --state NEW -j ACCEPT

# end script

note if you have dhcp on your external int or ppp
connection this script will only work after the ppp
connection and external interface are up

Regards
Rob


On Sun, 2003-08-10 at 13:53, rverduij@dds.nl wrote:


> Hi there,
> 
> I used to have adsl I got cable now.
> 
> You need to set up a firewall configuration on your ppp0 interface.
> (asuming ppp0 is the interface you tunnel through)
> 
> Because if you blok on your eth1 and/or eth0 all the traffic still get's 
> through to you machine, unless you have issued global rules which blok all 
> interfaces.
> 
> On your eth1 card you could set up filtering rules if you don't thrust network 
> the eth1 network card is connected to.
> 
> If you do remember to allow the traffice that builds the vpn (your pppoe 
> tunneling).
> And if you use a dynamic ip on your eth1 device to allow dhcp traffic as wel.
> 
> I'm currently not at my own pc, but I'll post anexample tomorrow for you.
> 
> Regards
> Rob
> 
> 
> Citeren Mario Meríngolo <mmeringolo@arnet.com.ar>:
> 
> > Im starting with this iptables stuff and trying to manage a home network
> > trough linux and adsl + pppoe 
> > 
> > I have two simple questions.
> > 
> >  
> > 
> > I have my adsl router conected to my eth1
> > 
> >  
> > 
> > When im setting my iptables rules, should I think that eth0 routes packages
> > through eth1 to ppp0 ?
> > 
> >  
> > 
> > Because, if that is, my drop rules should be defined on eth1, and my input
> > ones on eth0
> > 
> >  
> > 
> > Our should i think that eth1 does not matter and my reliable is eth0 and my
> > unreliable ppp0 ?
> > 
> >  
> > 
> > Please forgive my crude english
> > 
> >  
> > 
> > Thanx 
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> 
> 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Simple Newbie question
@ 2005-05-04  4:43 Steve Castellotti
  2005-05-04  5:16 ` Greg KH
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Steve Castellotti @ 2005-05-04  4:43 UTC (permalink / raw)
  To: linux-hotplug

hey all-

    I recently came across a USB touchscreen I'm trying to get to work
under linux. If I plug it in under windows it registers as an HID-
compliant device, and starts working with no additional drivers, so I
don't believe this should be very difficult. (I'm running Fedora Core 3
with linux kernel2.6.10-1.770_14.rhfc3.at incidentally)


    By diffing changes to /proc/bus/usb/devices, I've gotten a the info:

P:  Vendor\000 ProdIDÿff Rev= 1.00

    which I've confirmed is the correct device.



I've then edited /etc/hotplug/usb.usermap and added the following lines:

usbhid             0x0000 0x0000   0xffff    0x0000       0x0000
0x00   0x00            0x00            0x00            0x00
0x00       0x00000000
keybdev            0x0000 0x0000   0xffff    0x0000       0x0000
0x00   0x00            0x00            0x00            0x00
0x00       0x00000000
mousedev           0x0000 0x0000   0xffff    0x0000       0x0000
0x00   0x00            0x00            0x00            0x00
0x00       0x00000000


    (The device appears three times in /var/log/messages, as a "USB HID
v1.00 Mouse" a "USB HID v1.00 Device" and a "USB HID v1.00 Keyboard" but
of course I'm only interested in the mouse functionality)


    Diffing the changes to /sys/bus/usb/drivers/usbhid, the device is
appearing on 2-1, so I've created a rules file in /etc/udev/rules.d:

BUS="usb", PLACE="2-1", NAME="input/mouse0"



    The device seems to be recognized as a usbhid device even without
the hotplug or udev changes, but gpm fails to recognize it. Even after
the changes, while /dev/input/mouse0 will appear correctly, gpm still
will not recognize the mouse.


    Can anyone please point me in the right direction? Am I missing
something obvious here?


Cheers!

Steve Castellotti





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Simple Newbie question
  2005-05-04  4:43 Simple Newbie question Steve Castellotti
@ 2005-05-04  5:16 ` Greg KH
  2005-05-05  0:49 ` Steve Castellotti
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2005-05-04  5:16 UTC (permalink / raw)
  To: linux-hotplug

On Wed, May 04, 2005 at 04:43:42PM +1200, Steve Castellotti wrote:
> hey all-
> 
>     I recently came across a USB touchscreen I'm trying to get to work
> under linux. If I plug it in under windows it registers as an HID-
> compliant device, and starts working with no additional drivers, so I
> don't believe this should be very difficult. (I'm running Fedora Core 3
> with linux kernel2.6.10-1.770_14.rhfc3.at incidentally)
> 
> 
>     By diffing changes to /proc/bus/usb/devices, I've gotten a the info:
> 
> P:  Vendor\000 ProdIDÿff Rev= 1.00
> 
>     which I've confirmed is the correct device.
> 
> 
> 
> I've then edited /etc/hotplug/usb.usermap and added the following lines:
> 
> usbhid             0x0000 0x0000   0xffff    0x0000       0x0000
> 0x00   0x00            0x00            0x00            0x00
> 0x00       0x00000000
> keybdev            0x0000 0x0000   0xffff    0x0000       0x0000
> 0x00   0x00            0x00            0x00            0x00
> 0x00       0x00000000
> mousedev           0x0000 0x0000   0xffff    0x0000       0x0000
> 0x00   0x00            0x00            0x00            0x00
> 0x00       0x00000000
> 
> 
>     (The device appears three times in /var/log/messages, as a "USB HID
> v1.00 Mouse" a "USB HID v1.00 Device" and a "USB HID v1.00 Keyboard" but
> of course I'm only interested in the mouse functionality)
> 
> 
>     Diffing the changes to /sys/bus/usb/drivers/usbhid, the device is
> appearing on 2-1, so I've created a rules file in /etc/udev/rules.d:
> 
> BUS="usb", PLACE="2-1", NAME="input/mouse0"
> 
> 
> 
>     The device seems to be recognized as a usbhid device even without
> the hotplug or udev changes, but gpm fails to recognize it. Even after
> the changes, while /dev/input/mouse0 will appear correctly, gpm still
> will not recognize the mouse.

You should not need any hotplug or udev changes.

But you should point gpm to use the new /dev/input/mouse0 or the
/dev/input/mice device node.  Good luck with that.

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Simple Newbie question
  2005-05-04  4:43 Simple Newbie question Steve Castellotti
  2005-05-04  5:16 ` Greg KH
@ 2005-05-05  0:49 ` Steve Castellotti
  2005-05-05 18:48 ` Linas Vepstas
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Steve Castellotti @ 2005-05-05  0:49 UTC (permalink / raw)
  To: linux-hotplug


    Thanks .. but the device doesn't create the /dev/input/mouse0 (or
any other device entry) unless I manually create that udev rule file.
That being said, when I do use the udev rule file, stopping the gpm
daemon via init.d script and than calling gpm via:

# gpm -m /dev/input/mouse0 -t ps2

    doesn't seem have any effect.  I've tried with /dev/input/mice and
with types "imps2" "pnp" and "ms" as well to no effect.


	
	Might I have to somehow modify the usb mouse driver module to recognize
this device? Is there a table that I simply need to make an entry into?


Again, thanks

Steve Castellotti


On Tue, 2005-05-03 at 22:16 -0700, Greg KH wrote:

> >     The device seems to be recognized as a usbhid device even without
> > the hotplug or udev changes, but gpm fails to recognize it. Even after
> > the changes, while /dev/input/mouse0 will appear correctly, gpm still
> > will not recognize the mouse.
> 
> You should not need any hotplug or udev changes.
> 
> But you should point gpm to use the new /dev/input/mouse0 or the
> /dev/input/mice device node.  Good luck with that.
> 
> greg k-h
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
> _______________________________________________
> Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Steve Castellotti
Technical Director
Eye Magnet - New Zealand



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Simple Newbie question
  2005-05-04  4:43 Simple Newbie question Steve Castellotti
  2005-05-04  5:16 ` Greg KH
  2005-05-05  0:49 ` Steve Castellotti
@ 2005-05-05 18:48 ` Linas Vepstas
  2005-05-06 11:50 ` Steve Castellotti
  2005-05-06 11:52 ` Steve Castellotti
  4 siblings, 0 replies; 10+ messages in thread
From: Linas Vepstas @ 2005-05-05 18:48 UTC (permalink / raw)
  To: linux-hotplug

On Thu, May 05, 2005 at 12:49:12PM +1200, Steve Castellotti was heard to remark:
> 
>     Thanks .. but the device doesn't create the /dev/input/mouse0 (or
> any other device entry) unless I manually create that udev rule file.
> That being said, when I do use the udev rule file, stopping the gpm
> daemon via init.d script and than calling gpm via:
> 
> # gpm -m /dev/input/mouse0 -t ps2
> 
>     doesn't seem have any effect.  I've tried with /dev/input/mice and
> with types "imps2" "pnp" and "ms" as well to no effect.
> 
> 
> 	
> 	Might I have to somehow modify the usb mouse driver module to recognize
> this device? Is there a table that I simply need to make an entry into?

I think there's a way of getting gpm to report any raw input it recieves
... is it receiving any input at all? 

--linas


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Simple Newbie question
  2005-05-04  4:43 Simple Newbie question Steve Castellotti
                   ` (2 preceding siblings ...)
  2005-05-05 18:48 ` Linas Vepstas
@ 2005-05-06 11:50 ` Steve Castellotti
  2005-05-06 11:52 ` Steve Castellotti
  4 siblings, 0 replies; 10+ messages in thread
From: Steve Castellotti @ 2005-05-06 11:50 UTC (permalink / raw)
  To: linux-hotplug


    Well, I'm learning anyway.

    If I remove all of my modifications to udev and hotplug, and just
plug the device in as normal, four devices are created when I plug in
the device:

Mouse:
/dev/input/event2
/dev/input/js0

Keyboard:
/dev/usbhid0
/dev/input/event3


    Three device entries are created under /sys/bus/usb/devices, one for
the Mouse, one for "Comms" and one for "Keyboard"


    Comparing to when I plug in a USB microsoft intellimouse, I get two
devices:

/dev/input/mouse0
/dev/input/event4


    Now if I try:

#gpm -D -m /dev/input/event4 -Rraw      (the "event" device created for
the microsoft mouse)

I get:

[root@eyemagnet hotplug]# gpm -D -m /dev/input/event4 -Rraw
*** info [startup.c(95)]: Started gpm successfully. Entered daemon mode.
*** debug [console.c(125)]: Screen size: 80 - 25
*** debug [gpm.c(159)]: x 10, y 20


	...which stays like that until I move the mouse. Once I move the mouse
I endlessly get:

*** err [gpm.c(89)]: Error in read()ing first: No such file or directory
*** debug [gpm.c(533)]: selected 1 times


	...to standard out.



	The *identical* thing happens if I do:

# gpm -D -m /dev/input/event2 -Rraw (the "event" device created by the
touchscreen)



	...with the looping error messages not appearing until I touch the
screen somewhere. So there's definitely a form of interaction going on.
It seems that Linux is creating a "/dev/input/js0" (joystick) device for
the "mouse" portion of the touchscreen, instead of
creating /dev/input/mouse0 like it knows to do with the Intellimouse.


	Surely I'm getting close and its a matter of telling hotplug's
input.agent (or similar) to recognize the screen as a mouse instead of a
joystick?  

	Is the correct file to modify:

/lib/modules/<kernel version>/modules.inputmap

(?)


	and if so is there a reference for how to determine the correct values?



Thanks heaps for all the help everyone!

Steve Castellotti



On Thu, 2005-05-05 at 13:48 -0500, Linas Vepstas wrote:
> > # gpm -m /dev/input/mouse0 -t ps2
> > 
> >     doesn't seem have any effect.  I've tried with /dev/input/mice and
> > with types "imps2" "pnp" and "ms" as well to no effect.
> > 
> > 
> > 	
> > 	Might I have to somehow modify the usb mouse driver module to recognize
> > this device? Is there a table that I simply need to make an entry into?
> 
> I think there's a way of getting gpm to report any raw input it recieves
> ... is it receiving any input at all? 
> 
> --linas





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Simple Newbie question
  2005-05-04  4:43 Simple Newbie question Steve Castellotti
                   ` (3 preceding siblings ...)
  2005-05-06 11:50 ` Steve Castellotti
@ 2005-05-06 11:52 ` Steve Castellotti
  4 siblings, 0 replies; 10+ messages in thread
From: Steve Castellotti @ 2005-05-06 11:52 UTC (permalink / raw)
  To: linux-hotplug

    Well, I'm learning anyway.

    If I remove all of my modifications to udev and hotplug, and just
plug the device in as normal, four devices are created when I plug in
the device:

Mouse:
/dev/input/event2
/dev/input/js0

Keyboard:
/dev/usbhid0
/dev/input/event3


    Three device entries are created under /sys/bus/usb/devices, one for
the Mouse, one for "Comms" and one for "Keyboard"


    Comparing to when I plug in a USB microsoft intellimouse, I get two
devices:

/dev/input/mouse0
/dev/input/event4


    Now if I try:

#gpm -D -m /dev/input/event4 -Rraw      (the "event" device created for
the microsoft mouse)

I get:

[root@eyemagnet hotplug]# gpm -D -m /dev/input/event4 -Rraw
*** info [startup.c(95)]: Started gpm successfully. Entered daemon mode.
*** debug [console.c(125)]: Screen size: 80 - 25
*** debug [gpm.c(159)]: x 10, y 20


	...which stays like that until I move the mouse. Once I move the mouse
I endlessly get:

*** err [gpm.c(89)]: Error in read()ing first: No such file or directory
*** debug [gpm.c(533)]: selected 1 times


	...to standard out.



	The *identical* thing happens if I do:

# gpm -D -m /dev/input/event2 -Rraw (the "event" device created by the
touchscreen)



	...with the looping error messages not appearing until I touch the
screen somewhere. So there's definitely a form of interaction going on.
It seems that Linux is creating a "/dev/input/js0" (joystick) device for
the "mouse" portion of the touchscreen, instead of
creating /dev/input/mouse0 like it knows to do with the Intellimouse.


	Surely I'm getting close and its a matter of telling hotplug's
input.agent (or similar) to recognize the screen as a mouse instead of a
joystick?  

	Is the correct file to modify:

/lib/modules/<kernel version>/modules.inputmap

(?)


	and if so is there a reference for how to determine the correct values?



Thanks heaps for all the help everyone!

Steve Castellotti



On Thu, 2005-05-05 at 13:48 -0500, Linas Vepstas wrote:
> > # gpm -m /dev/input/mouse0 -t ps2
> > 
> >     doesn't seem have any effect.  I've tried with /dev/input/mice and
> > with types "imps2" "pnp" and "ms" as well to no effect.
> > 
> > 
> > 	
> > 	Might I have to somehow modify the usb mouse driver module to recognize
> > this device? Is there a table that I simply need to make an entry into?
> 
> I think there's a way of getting gpm to report any raw input it recieves
> ... is it receiving any input at all? 
> 
> --linas





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-05-06 11:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-09 21:38 simple newbie question Mario Meríngolo
2003-08-09 22:00 ` Whit Blauvelt
2003-08-10 11:53 ` rverduij
2003-08-11 21:19   ` Rob Verduijn
  -- strict thread matches above, loose matches on Subject: below --
2005-05-04  4:43 Simple Newbie question Steve Castellotti
2005-05-04  5:16 ` Greg KH
2005-05-05  0:49 ` Steve Castellotti
2005-05-05 18:48 ` Linas Vepstas
2005-05-06 11:50 ` Steve Castellotti
2005-05-06 11:52 ` Steve Castellotti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.