Kaffeine Forum

Kaffeine Media Player forum

Kaffeine Forum            
Log in to check your private messages Log in to check your private messages
lirc and keyboard shortcuts

 
Post new topic   Reply to topic    Kaffeine Forum Forum Index -> DVB
View previous topic :: View next topic  
Author Message
kalamatianos



Joined: 30 Mar 2012
Posts: 2

PostPosted: Fri Mar 30, 2012 10:26 am    Post subject: lirc and keyboard shortcuts Reply with quote

Hello,

I hav still problems getting the keys of my remote work. It seems, kaffeine gets some codes from the rc without working .lircrc and /etc/lirc.conf, i. e. out of the box. I dont like to use the qdbus commands, because the record function is not included. Further, I havo no idea how to configure the .lircrc. I use
Version 1.0-svn3 on Development Platform 4.4.5 (KDE 4.4.5) on Xubuntu 10.4 (Lynx).

My /etc/lirc/hardware.conf:
Code:

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE=/dev/input/event5
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
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="false"

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

# Default configuration files for your hardware if any
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=""

My /home/user/.lircrc:

Code:


#selbstgestrickt





begin irexec

 begin
     prog = irexec
     button = Power
     config = kaffeine
 end

 begin
     prog = irexec
     button = User1
     config = xte 'key F'
 end

 begin
     prog = irexec
     button = Power
     config = kaffeine
 end

 begin
     prog = irexec
     button = Channel+
     config = xte 'key Up'
 end

 begin
     prog = irexec
     button = Channel-
     config = xte 'key Down'
 end

 begin
     prog = irexec
     button = Volume-
     config = xte 'key plus'
 end

 begin
     prog = irexec
     button = Volume-
     config = xte 'key minus'
 end

 begin
     prog = irexec
     button = Mute
     config = xte 'key M'
 end



 begin
     prog = irexec
     button = Play
     config = xte 'key space'
 end

 begin
   prog = irexec
   button = 1
   config = xte 'key 1'
 end

 begin
   prog = irexec
   button = 2
   config = xte 'key 2'
 end

 begin
   prog = irexec
   button = 3
   config = xte 'key 3'
 end

 begin
   prog = irexec
   button = 4
   config = xte 'key 4'
 end

 begin
   prog = irexec
   button = 5
   config = xte 'key 5'
 end

 begin
   prog = irexec
   button = 6
   config = xte 'key 6'
 end

 begin
   prog = irexec
   button = 7
   config = xte 'key 7'
 end

 begin
   prog = irexec
   button = 8
   config = xte 'key 8'
 end

 begin
   prog = irexec
   button = 9
   config = xte 'key 9'
 end

 begin
   prog = irexec
   button = 0
   config = xte 'key 0'
 end

 begin
   prog = irexec
   button = Record
   config = xte 'key a'
 end

 begin
   prog = irexec
   button = Menu
   config = xte 'key O'
 end


 begin
   prog = irexec
   button = Shutdown
   config = xte 'keydown Alt_L' 'key F4' 'keyup Alt_L'
 end

 begin
   prog = irexec
   button = Up
   config = xte 'key Up'
 end
 begin
   prog = irexec
   button = Down
   config = xte 'key Down'
 end
 begin
   prog = irexec
   button = Left
   config = xte 'key Left'
 end
 begin
   prog = irexec
   button = Right
   config = xte 'key Right'
 end
 begin
   prog = irexec
   button = Ok
   config = xte 'key Return'
 end




begin
   prog = irexec
   button = Red
   config = xte 'key 6'
 end


end irexec




and my /etc/lircd.conf

Code:


# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.4a(devinput) on Sun Aug 16 23:03:30 2009
#
# contributed by
#
# brand:                       sundtek.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name       sundtek.conf
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   16
  pre_data       0x8001
  gap          211362
  toggle_bit_mask 0x80010004

      begin codes
          Power                    0x0074
          Menu                     0x0161
          User1                    0x0174
          Shutdown                 0x00AE
          1                        0x0002
          2                        0x0003
          3                        0x0004
          4                        0x0005
          5                        0x0006
          6                        0x0007
          7                        0x0008
          8                        0x0009
          9                        0x000A
          0                        0x000B
          Channel+                 0x0192
          Channel-                 0x0193
          Volume+                  0x0073
          Volume-                  0x0072
          Ok                       0x001C
          Record                   0x00A7
          Stop                     0x0080
          Play                     0x00CF
          Mute                     0x0071
          Up                       0x0067
          Down                     0x006C
          Left                     0x0069
          Right                    0x006A
          Red                      0x018E
          Green                    0x018F
          Yellow                   0x0190
          Blue                     0x0191
          Back                     0x009e
      end codes

end remote




Any suggestions?

Greetings,
Roland
Back to top
View user's profile Send private message
kalamatianos



Joined: 30 Mar 2012
Posts: 2

PostPosted: Fri Mar 30, 2012 10:51 am    Post subject: Reply with quote

qdbus org.kde.kaffeine /Television ToggleInstantRecord


OK, but how has the lircrc look like?

:'-(
Back to top
View user's profile Send private message
mtron



Joined: 31 Jul 2007
Posts: 225

PostPosted: Fri Mar 30, 2012 6:37 pm    Post subject: Reply with quote

Code:
begin
       remote = linux-input-layer     
       prog   = irexec
       button = KEY_REC
       config = qdbus org.kde.kaffeine /Television ToggleInstantRecord
       repeat = 0
end
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Kaffeine Forum Forum Index -> DVB All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Anti Bot Question MOD - phpBB MOD against Spam Bots
Blocked registrations / posts: 8374 / 0