I have tried to emulate mouse on text console using lircd and lircmd.
So, I have modified standard gpm service to run command:/usr/sbin/gpm -m /dev/input/mice -t ps2 -R -M -m /dev/lircm -t ms3 .
Then I have modified services to run start-scripts for lirc and gpm at startup.
Lircmd starts first and it makes /dev/lircm device.
Service gpm should use this device but it does not that.
Each time during start of system service gpm sends message: Could not open /dev/lircm
But if I start gpm after logging (/etc/init.d/gpm start)
all is ok and service works properly.
I have tried to run gpm start-script from rc.local but I still have error described above.
I can not run modified service gpm automatically. I can only do that by hand.