Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43

Thread: How to make your laptop play sounds on lid open/close :)

  1. #21
    nikoPSK is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Sep 2007
    Location
    Victoria, BC
    Beans
    2,265
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to make your laptop play sounds on lid open/close :)

    sweet, red alert 2 was a great game. PS, did you just extract the sounds from your installation of it? Or could you send them to me...

  2. #22
    Join Date
    Mar 2007
    Location
    usa
    Beans
    223
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to make your laptop play sounds on lid open/close :)

    Quote Originally Posted by nikoPSK View Post
    I've tried all those and more except feather. Mine has half the processor speed required.
    I currently have a home server running with 92 megs of ram and a 233mhz processor, it can act as my squid proxy, http server, ftp server, and ssh server all at once. and still has enough stuff to run X.
    (jwm)

  3. #23
    Join Date
    Jul 2007
    Location
    Bariloche, Argentina
    Beans
    2,140
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: How to make your laptop play sounds on lid open/close :)

    Quote Originally Posted by nikoPSK View Post
    sweet, red alert 2 was a great game. PS, did you just extract the sounds from your installation of it? Or could you send them to me...
    Actually, I looked for them on my CDs and inside the installation folders and I couldn't find them, so I finally got them from FrostWire. I'm still looking for the "You have 30 seconds to comply" that you hear when the installation asks for the key. I wanted to use that one on my login screen.
    Let me compress the files and I'll send them to you. Just let me tell you they have no useful name, so you'll have to listen to some minutes of speeches to find the one you want.

    EDIT:
    Where can I send them to? Would there be any problems by attaching them here?
    Last edited by santiagoward2000; December 4th, 2007 at 05:25 AM.

  4. #24
    Join Date
    Feb 2007
    Location
    perdita
    Beans
    1,622
    Distro
    Ubuntu

    Re: How to make your laptop play sounds on lid open/close :)

    @NicoPSK:

    I forgot this for your problem with festival:
    Just install one of the voice packs. Search for festival in name&desription in synaptic.
    ex:
    Code:
    festival-czech - Czech support for Festival speech synthesis system
    festival-doc - Documentation for Festival
    festival-freebsoft-utils - Festival extensions and utilities
    festival-gaim - gaim plugin to hear incoming messages using voice synthesis
    festival-hi - Festival text to speech synthesizer for Hindi
    festival-mr - Festival text to speech synthesizer for Marathi
    festival-te - Festival text to speech synthesizer for Telugu (te) language
    festlex-ifd - Italian support for Festival
    festlex-poslex - Part of speech lexicons and ngram from English
    festvox-czech-ph - Czech male speaker for Festival
    festvox-hi-nsk - Hindi male speaker for Festival
    festvox-italp16k - Italian female speaker for Festival
    festvox-itapc16k - Italian male speaker for Festival
    festvox-kallpc16k - American English male speaker for festival, 16khz sample rate
    festvox-kallpc8k - American English male speaker for festival, 8khz sample rate
    festvox-kdlpc16k - American English male speaker for festival, 16khz sample rate
    festvox-kdlpc8k - American English male speaker for festival, 8khz sample rate
    festvox-mr-nsk - Marathi male speaker for Festival
    festvox-suopuhe-common - Common files for Festival Finnish speakers
    festvox-suopuhe-lj - Finnish female speaker for Festival
    festvox-suopuhe-mv - Finnish male speaker for festival
    festvox-te-nsk - Telugu (te) male speaker for Festival
    festvox-don - minimal British English male speaker for festival
    festvox-ellpc11k - Castilian Spanish male speaker for Festival
    festvox-rablpc16k - British English male speaker for festival, 16khz sample rate
    festvox-rablpc8k - British English male speaker for festival, 8khz sample rate
    P.S: Just discovered this:
    festival-gaim - gaim plugin to hear incoming messages using voice synthesis
    Must try out.
    If somebody finds it for IRC, please tell me.
    Last edited by KIAaze; December 4th, 2007 at 06:56 AM. Reason: spelling

  5. #25
    nikoPSK is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Sep 2007
    Location
    Victoria, BC
    Beans
    2,265
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to make your laptop play sounds on lid open/close :)

    I have to try that out too, are there any funny voices? My gps has some funny ones...

  6. #26
    Join Date
    Dec 2007
    Location
    Norfolk
    Beans
    63
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to make your laptop play sounds on lid open/close :)

    ignore this post, just subscribing for when i have sound in laptop again

  7. #27
    Join Date
    Aug 2006
    Beans
    30

    Re: How to make your laptop play sounds on lid open/close :)

    I really like this.

    I made my laptop close sound from an OpenOffice.Org .wav file.
    /usr/lib/openoffice/share/gallery/sounds/beam.wav but I edited the file with audacity to get rid of the "BIP" noise at the end of the file...

    but after reading more of this thread, I'm thinking about using some fesitval stuff

    very interesting thread... thanks

  8. #28
    Join Date
    Jun 2007
    Location
    家で
    Beans
    38
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to make your laptop play sounds on lid open/close :)

    When i first followed this howto it worked like a charm for me, but for some reason after I reinstalled its not working anymore, i made sure to convert the sound flies (CS, Ownage & Wicked Sick) to 16bit .wav I threw everything in /etc/acpi and copied the code and placed it properly in lid.sh.

    However, the hinge on the left side of my laptop (that keeps the display connected to the keyboard) is a bit lose, but, when I apply a bit of pressure my display shuts off (thats when it used 2 play) and when I opened it up it worked flawlessly

    any suggestions/tips?

    Thanks in advance

    ~dak

  9. #29
    Join Date
    Mar 2007
    Beans
    26
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How to make your laptop play sounds on lid open/close :)

    How can I get it to work with other programs? I really want to be able to use xbindkeys so i can change the mapping of some keys while it's closed (my laptop has -some- exposed keys)

    I also tried running stuff like firefox and xfce4-terminal to open when i open the lid and that doesn't work either.


    btw thanks for the great tutorial (i have the starcraft sounds )
    Last edited by Pru; September 21st, 2008 at 01:53 AM.

  10. #30
    Join Date
    Feb 2007
    Location
    perdita
    Beans
    1,622
    Distro
    Ubuntu

    Re: How to make your laptop play sounds on lid open/close :)

    However, the hinge on the left side of my laptop (that keeps the display connected to the keyboard) is a bit lose, but, when I apply a bit of pressure my display shuts off (thats when it used 2 play) and when I opened it up it worked flawlessly

    any suggestions/tips?
    I don't quite understand the problem.
    Seems more like a hardware issue.

    How can I get it to work with other programs? I really want to be able to use xbindkeys so i can change the mapping of some keys while it's closed (my laptop has -some- exposed keys)

    I also tried running stuff like firefox and xfce4-terminal to open when i open the lid and that doesn't work either.
    The problem is that the commands get run by root and don't seem to have access to the display/ X server.
    I'm still trying to figure out how to launch GUIs from there (as well as from root crontab).
    As for xbindkeys, I don't know how to use it, so if you could tell me what command you are trying to run, it might help me.

    Here's what I do to debug:
    Code:
    date 1>>/home/user/temp.log 2>&1
    
    grep -q closed /proc/acpi/button/lid/LID/state
    if [ $? = 0 ]
    then
            export DISPLAY=:0 && xfce4-terminal 1>>/home/user/temp.log 2>&1
            xbindkeys  1>>/home/user/temp.log 2>&1
    else
            export DISPLAY=:0 && xfce4-terminal 1>>/home/user/temp.log 2>&1
            xbindkeys  1>>/home/user/temp.log 2>&1
    fi
    It will write all output from the commands into /home/user/temp.log

    Here's what I'm currently getting:
    Code:
    Mon Sep 22 13:37:27 CEST 2008
    No protocol specified
    
    (xfce4-terminal:14256): Gtk-WARNING **: cannot open display: :0
    Some things I found:
    http://ubuntuforums.org/archive/index.php/t-5281.html
    http://en.wikipedia.org/wiki/Xvfb
    Last edited by KIAaze; September 22nd, 2008 at 12:43 PM.

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •