קובץ lircrc ב mythtv
היי,
סוף סוף לאחר יגיעה רבה, הצלחתי לקנפג את ה lirc
כאשר אני בוחן את העניין עם irw ולוחץ על כפתורים בשלט אני מקבל את הקודים הנכונים לפי שלט של mce2usb
הבעיה היא ש mythtv עדיין לא "מבינה" את הקודים, חפרתי קצת וראיתי שיש צורך לקנפג קובץ בשם lircrc מישהו יודע איפה המיקום שלו?
כלומר נתיב מדוייק ומלא
סוף סוף לאחר יגיעה רבה, הצלחתי לקנפג את ה lirc
כאשר אני בוחן את העניין עם irw ולוחץ על כפתורים בשלט אני מקבל את הקודים הנכונים לפי שלט של mce2usb
הבעיה היא ש mythtv עדיין לא "מבינה" את הקודים, חפרתי קצת וראיתי שיש צורך לקנפג קובץ בשם lircrc מישהו יודע איפה המיקום שלו?
כלומר נתיב מדוייק ומלא
את הקובץ תשים בספריית הבית שלך, השם הוא .lircrc (שים לב שיש נקודה בתחילת השם).
צירפתי בעבר את הקובץ שאני משתמש בו, אני מצרף אותו שוב, כל הכפתורים מוגדרים ומותאמים.
צירפתי בעבר את הקובץ שאני משתמש בו, אני מצרף אותו שוב, כל הכפתורים מוגדרים ומותאמים.
קוד: בחירת הכל
#
# lircrc config file for the Microsoft Media Center Edition Remote, model 1039
# Jump Points:
#
# TV Recording Playback: Alt+R
# Program Guide: Alt+G
# Live TV: Alt+P
# MythVideo -> The MythVideo default view: Alt+V
# Main Menu: Alt+Home
#
# Key Bindings:
#
# TV Playback -> CHANNELDOWN: Down,PgDown
# TV Playback -> CHANNELUP: Up,PgUp
# TV Playback -> JUMPRWND: Shift+PgUp
# TV Playback -> JUMPFFWD: Shift+PgDown
#
###################################################################
# Begin of mythtv key bindings.
##
#
# Program Navigation
#
#mythtv PIP settings
begin
prog = mythtv
button = Blue
config = V
end
begin
prog = mythtv
button = Yellow
config = B
end
begin
prog = mythtv
button = Green
config = N
end
begin
prog = mythtv
button = Red
config = g
end
begin
prog = mythtv
button = DVD
config = Alt+D
end
begin
prog = mythtv
button = LiveTV
config = Alt+T
end
begin
prog = mythtv
button = Pictures
config = Alt+P
end
begin
prog = mythtv
button = RecTV
config = Alt+R
end
begin
prog = mythtv
button = Videos
config = Alt+V
end
begin
prog = mythtv
button = Music
config = Alt+M
end
begin
prog = mythtv
button = Home
config = M
end
begin
prog = mythtv
button = RecTV
config = Alt+R
end
begin
prog = mythtv
button = Guide
config = Alt+G
end
begin
prog = mythtv
button = LiveTV
config = Alt+P
end
begin
prog = mythtv
button = DVD
config = Alt+V
end
#
# Menu Navigation
#
begin
prog = mythtv
button = Back
config = Esc
end
begin
prog = mythtv
button = OK
config = Space
end
begin
prog = mythtv
button = More
config = I
end
begin
prog = mythtv
button = Left
config = Left
end
begin
prog = mythtv
button = Right
config = Right
end
begin
prog = mythtv
button = Up
config = Up
repeat = 1
end
begin
prog = mythtv
button = Down
config = Down
repeat = 1
end
#
# TV Control
#
begin
prog = mythtv
button = VolDown
config = F10
repeat = 1
end
begin
prog = mythtv
button = VolUp
config = F11
repeat = 1
end
begin
prog = mythtv
button = Mute
config = F9
end
begin
prog = mythtv
button = ChanDown
config = PgDown
end
begin
prog = mythtv
button = ChanUp
config = PgUp
end
#
# Video Navigation
#
begin
prog = mythtv
button = Play
config = P
end
begin
prog = mythtv
button = Pause
config = P
end
begin
prog = mythtv
button = Stop
config = Esc
end
begin
prog = mythtv
button = Forward
config = .
end
begin
prog = mythtv
button = Rewind
config = ,
end
begin
prog = mythtv
button = Replay
config = Q
end
begin
prog = mythtv
button = Skip
config = Z
end
begin
prog = mythtv
button = Record
config = R
end
#
# Miscellaneous
#
# M for Menu
begin
prog = mythtv
button = Star
config = M
end
begin
prog = mythtv
button = Hash
config = M
end
begin
prog = mythtv
button = Clear
config = Esc
end
begin
prog = mythtv
button = Enter
config = Enter
end
#
# Numbers
#
begin
prog = mythtv
button = Zero
config = 0
end
begin
prog = mythtv
button = One
config = 1
end
begin
prog = mythtv
button = Two
config = 2
end
begin
prog = mythtv
button = Three
config = 3
end
begin
prog = mythtv
button = Four
config = 4
end
begin
prog = mythtv
button = Five
config = 5
end
begin
prog = mythtv
button = Six
config = 6
end
begin
prog = mythtv
button = Seven
config = 7
end
begin
prog = mythtv
button = Eight
config = 8
end
begin
prog = mythtv
button = Nine
config = 9
end
##
# End of mythtv key bindings.
##
###################################################################
# Begin of mplayer key bindings.
##
begin
prog = mplayer
button = Back
config = quit
end
begin
prog = mplayer
button = More
config = osd
end
begin
prog = mplayer
button = Replay
config = seek -60
repeat = 1
end
begin
prog = mplayer
button = Skip
config = seek +60
repeat = 1
end
begin
prog = mplayer
button = Rewind
config = seek -10
repeat = 1
end
begin
prog = mplayer
button = Forward
config = seek +10
repeat = 1
end
begin
prog = mplayer
button = ChanUp
config = ]
repeat = 1
end
begin
prog = mplayer
button = ChanDown
config = [
repeat = 1
end
begin
prog = mplayer
button = Pause
config = pause
end
begin
prog = mplayer
button = VolUp
config = volume +1
repeat = 1
end
begin
prog = mplayer
button = VolDown
config = volume -1
repeat = 1
end
begin
prog=mplayer
button=Mute
config=mute
end
begin
prog=mplayer
button=Enter
config=j
end
##
# End of mplayer key bindings.
##
###################################################################
# Begin of xmms key bindings.
##
# Thanks to Elliot Taylor
begin
button = Skip
prog = xmms
config = next
end
begin
button = Play
prog = xmms
config = play
end
begin
button = Replay
prog = xmms
config = prev
end
begin
button = Pause
prog = xmms
config = pause
end
begin
button = More
prog = xmms
config = SAYTITLE
end
begin
button = Stop
prog = xmms
config = stop
end
begin
button = Forward
prog = xmms
config = fwd 3
end
begin
button = Rewind
prog = xmms
config = bwd 3
end
#begin
# button = Red
# prog = xmms
# config = repeat
#end
begin
button = EDIT
mode = nobounce
end
begin nobounce
begin
button = Forward
prog = xmms
config = fwd 3
flags = mode
end
begin
button = Rewind
prog = xmms
config = bwd 3
flags = mode
end
begin
button = Skip
prog = xmms
config = next
flags = mode
end
begin
button = PLAY
prog = xmms
config = play
flags = mode
end
begin
button = Replay
prog = xmms
config = prev
flags = mode
end
begin
button = Pause
prog = xmms
config = pause
flags = mode
end
begin
button = Stop
prog = xmms
config = stop
flags = mode
end
begin
button = Green
prog = xmms
config = shuffle
flags = mode
end
#begin
# button = Red
# prog = xmms
# config = repeat
# flags = mode
#end
begin
button = Back
prog = xmms
config = PLAYLIST_REMOVE
flags = mode
end
end nobounce
##
# End of xmms key bindings.
##
##############################
## begin of VLC key bindings
## Written by Shed
##############################
begin
prog = vlc
button = Play
config = key-play-pause
end
begin
prog = vlc
button = Stop
config = key-pause
end
begin
prog = vlc
button = OK
config = key-nav-activate
end
# Use this target if you have a combined play/pause button
begin
prog = vlc
button = Pause
config = key-play-pause
repeat = 0
end
begin
prog = vlc
button = Back
config = key-quit
end
begin
prog = vlc
button = Skip
config = key-chapter-next
repeat = 0
end
begin
prog = vlc
button = Replay
config = key-chapter-prev
repeat = 0
end
begin
prog = vlc
button = Up
config = key-nav-up
end
begin
prog = vlc
button = Left
config = key-nav-left
end
begin
prog = vlc
button = Right
config = key-nav-right
end
begin
prog = vlc
button = Down
config = key-nav-down
end
begin
prog = vlc
button = Home
config = key-disc-menu
end
begin
prog = vlc
button = ChanDown
config = key-chapter-prev
end
begin
prog = vlc
button = ChanUp
config = key-chapter-next
end
begin
prog = vlc
button = Red
config = key-slower
end
begin
prog = vlc
button = Green
config = key-faster
end
#Audio controls
begin
prog = vlc
button = VolDown
config = key-vol-down
repeat = 1
end
begin
prog = vlc
button = VolUp
config = key-vol-up
repeat = 1
end
begin
prog = vlc
button = SOMEBUTTON
config = key-audio-track
end
begin
prog = vlc
button = Mute
config = key-vol-mute
end
begin
prog = irexec
button = Power
config = /usr/bin/mythf.sh
repeat = 4
end
begin
prog = myth
button = Blue
config = V
end
begin
prog = irexec
button = Yellow
config = B
end
begin
prog = irxevent
button = Green
config = ey Alt-Ctrl-Right RootWindow
end
begin
prog = irxevent
button = Red
config = Key Alt-Ctrl-Left RootWindow
end
You are never fully dressed without a smile
אוקי עובד עכשיוnema כתב:אה הא, היתה חסרה לי הנקודה בהצלחה כנראה
אני אנסה שוב
-----------------
אחרי שהוספתי נקודה בתחילת השם של הקובץ הוא נעלם לי?
אולי אתה יודע למה?...
שים לב שלפי הלינק הבא זה צריך להיות ככה lircrc בלי נקודה בהתחלה
http://www.mythtv.org/wiki/LIRC
מה שצריך לעשות (עבור מי שיצטרך בעתיד)
להכנס בטרמינל
לעשות
cd /home/<user_name>/.mythtv
לכתוב
sudo gedit
אם לא תכתבו sudo בהתחלה לא תוכלו לשמור את הקובץ אח"כ, אז תקפידו לכתוב או לתת הרשאות כתיבה לתיקיה עם chmod 777
להעתיק את התוכן של הקובץ שנמצא שני פוסטים מעליי לתוכב האדיטור
לשמור בשם lircrc בלי נקודה בתחילת שם הקובץ
להפעיל mythtv מחדש
בהצלחה
nema,
כמה הארות והערות:
1. שם הקובץ צריך להיות עם נקודה לפניו. לכל משתמש יכול להיות מיפוי שונה ל-lirc, והמיפוי הזה נמצא בספריית הבית תחת השם lircrc. (עם נקודה).
2. לפי ההוראות ששמת - אני מבין שהשתמשת באיזו שהיא הפצה מוכנה מראש, אשר יצרה כבר בספריית הבית שלך קובץ lircrc. אשר מפנה לקובץ lircrc (הפעם בלי נקודה) שנמצא בתוך ספריית mythtv. אם תשתמש בפקודה ls -al בספריית הבית תוכל לראות את המיפוי הזה.
באופן אישי אני נמנע ממיפויים כאלה ואוהב לשמור את קבצי הקונפיגורציה במקומות הטבעיים שלהם.
3. אין שום צורך להשתמש ב-sudo על מנת לערוץ את הקובץ שנמצא בתוך ספריית הבית שלך. באופן טבעי יש למשתמש הרשאות על הקבצים שלו. הדרך שאתה מציע כאן עקומה במקצת, ואומרת ש-SU (משתמש ברמת מנהל) יצור את הקובץ, ואז יתן הרשאות 777 לקובץ - במילים אחרות: הרשאות לכל משתמש במחשב לעשות כל מה שהוא רוצה עם הקובץ. המצב הזה לא מומלץ כלל, ורצוי לפחות להגדיר שרק הבעלים של הקובץ יוכל לשנות אותו.
כמה הארות והערות:
1. שם הקובץ צריך להיות עם נקודה לפניו. לכל משתמש יכול להיות מיפוי שונה ל-lirc, והמיפוי הזה נמצא בספריית הבית תחת השם lircrc. (עם נקודה).
2. לפי ההוראות ששמת - אני מבין שהשתמשת באיזו שהיא הפצה מוכנה מראש, אשר יצרה כבר בספריית הבית שלך קובץ lircrc. אשר מפנה לקובץ lircrc (הפעם בלי נקודה) שנמצא בתוך ספריית mythtv. אם תשתמש בפקודה ls -al בספריית הבית תוכל לראות את המיפוי הזה.
באופן אישי אני נמנע ממיפויים כאלה ואוהב לשמור את קבצי הקונפיגורציה במקומות הטבעיים שלהם.
3. אין שום צורך להשתמש ב-sudo על מנת לערוץ את הקובץ שנמצא בתוך ספריית הבית שלך. באופן טבעי יש למשתמש הרשאות על הקבצים שלו. הדרך שאתה מציע כאן עקומה במקצת, ואומרת ש-SU (משתמש ברמת מנהל) יצור את הקובץ, ואז יתן הרשאות 777 לקובץ - במילים אחרות: הרשאות לכל משתמש במחשב לעשות כל מה שהוא רוצה עם הקובץ. המצב הזה לא מומלץ כלל, ורצוי לפחות להגדיר שרק הבעלים של הקובץ יוכל לשנות אותו.
You are never fully dressed without a smile

