Hi all

I'v solved this question.
1) My lircd.conf  "power     Ox38C7" line should be  "power     0x38C7", this is a big mistake I maked by modifing it manually. After this step, irw can get data while pressing remote buttons.
2) Under Ubuntu8.04, I found system firstly start X and execute /etc/init.d/lirc sencondly, it makes X can not find /dev/lirmd file, so I tune this issue using following commands:
anders@anders-desktop:~$sudo update-rc.d -f lirc remove
anders@anders-desktop:~$sudo update-rc.d lirc start 50 S .

Now I can use my remote to move and click mouse  :-)

2009/7/9 Anders Ma <xuejiao.ma@gmail.com>
Hi

>> I want to use my remote to move my PC's mouse, so I follow the guide
>> "http://www.lirc.org/html/configure.html#lircmd.conf_format" page and
>> do configuration.
>> Under my OS, I can't find XFree86 file, so I edit xorg.conf file and
>> add following items:
>
> I think you have to follow the directions for X11 4.x, not for 3.x.
>

I 'v followed the directions as X114.x guide, now the X can display normally.
But I can't use my remove to control mouse move. After reseaching, I
found mabye the /dev/lircd socket got problem, because I can't get any
data from the socket, why?

following is my operation steps and configuration files:

anders@anders-desktop:~$ uname -a
Linux anders-desktop 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC
2008 i686 GNU/Linux
anders@anders-desktop:~$ lircd -v
lircd 0.8.3pre1

anders@anders-desktop:~$ ls -l /dev/lirc*
crw-rw---- 1 root root 61, 0 2009-07-09 06:51 /dev/lirc0
srw-rw-rw- 1 root root     0 2009-07-09 06:51 /dev/lircd
prw-r--r-- 1 root root     0 2009-07-09 06:51 /dev/lircm

anders@anders-desktop:~$ ps -ef | grep lirc
root      5462     1  0 06:51 ?        00:00:00 /usr/sbin/lircd
--device=/dev/lirc0
root      5465     1  0 06:51 ?        00:00:00 /usr/sbin/lircmd

anders    6008  5922  0 06:58 pts/0    00:00:00 grep lirc
anders@anders-desktop:~$ netstat -an | grep lirc
unix  2      [ ACC ]     stream        LISTENING     13863    /dev/lircd
unix  3      [ ]         stream       CONNECTING     13871    /dev/lircd

anders@anders-desktop:~$ irw /dev/lircd

(pressed remote and got nothing, I can use mode2 to get raw code)

xorg.conf
-----------------
Section "InputDevice"
       Identifier  "LIRC-Mouse"
       Driver      "mouse"
       Option      "Device" "/dev/lircm"
       Option      "Protocol" "IntelliMouse"
       Option      "SendCoreEvents"
       Option      "Buttons" "5"
       Option      "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
       Identifier      "Generic Keyboard"
       Driver          "kbd"
       Option          "XkbRules"      "xorg"
       Option          "XkbModel"      "pc105"
       Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
       Identifier      "Configured Mouse"
       Driver          "mouse"
       Option          "CorePointer"
EndSection

Section "Device"
       Identifier      "Configured Video Device"
EndSection

Section "Monitor"
       Identifier      "Configured Monitor"
EndSection

Section "Screen"
       Identifier      "Default Screen"
       Monitor         "Configured Monitor"
       Device          "Configured Video Device"
EndSection

Section "ServerLayout"
       Identifier      "Default Layout"
       Screen          "Default Screen"
       InputDevice     "LIRC-Mouse"
EndSection

lircd.conf
-----------------
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.3pre1(default) on Wed Jul  1 23:46:56 2009
#
# contributed by www.szdiy.org
#
# brand:                       KONKA
# model no. of remote control: KK-Y250A
# devices being controlled by this remote:
#

begin remote

 name  KONKA_KK-Y250A
 bits           16
 flags SPACE_ENC|CONST_LENGTH
 eps            30
 aeps          100

 header       9015  4422
 one           616  1639
 zero          616   508
 ptrail        621
 repeat       8982  4451
 pre_data_bits   26
 pre_data       0x2620CEF
 gap          108380
 toggle_bit_mask 0x0

     begin codes
         power                    Ox38C7
         mute                     0xA857
         1                        0x807F
         2                        0x40BF
         3                        0xC03F
         4                        0x20DF
         5                        0xA05F
         6                        0x609F
         7                        0xE01F
         8                        0x10EF
         9                        0x906F
         0                        0x00FF
         -                        0x50AF
         p                        0x6897
         moni                     0xC837
         dingshi                  0xB847
         kong                     0x28D7
         a                        0x708F
         ch+                      0xD827
         b                        0xB04F
         vol-                     0x7887
         vol-                     0xF807
         enter                    0x08F7
         ch-                      0x58A7
         novideo                  0xD02F
     end codes

end remote

lircd.conf
-----------------
#
# lircmd config file
#

# protocol to use
# PROTOCOL IMPS/2
PROTOCOL IntelliMouse

# ACCELERATOR start max multiplier
ACCELERATOR 1 30 1

# this button activates/deactivates mouse mode
# in this case it is the 'drag' (below power) button
# commenting out keeps it on
#ACTIVATE * drag
#TOGGLE_ACTIVATE * drag

MOVE_N  * 2
MOVE_NE * 3
MOVE_E  * 6
MOVE_SE * 9
MOVE_S  * 8
MOVE_SW * 7
MOVE_W  * 4
MOVE_NW * 1
MOVE_IN * vol-
MOVE_OUT * vol+

BUTTON1_CLICK * 5
BUTTON2_CLICK * -

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Home-brew (16x50 UART compatible serial port)"
REMOTE_MODULES="lirc_dev lirc_serial"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="/etc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
START_LIRCMD="true"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF="/etc/lirc/lircmd.conf"

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

Thanks a lot!

--
Regards
Anders



--
Regards
Anders