ToolBoxTools.addEventListener only works every second time

Hi!
Our layouts pretty often click on the "page tool" by mistake and it happened a few times, that they changes the size of the page without even noticing. Because there is no way to remove the tool from the toolbar (I guess?), I wanted to write a script, that at least shows a message, that the page tool ("Seitenwerkzeug" in german) was selected. Unfortunately the event listener only works every second time:
1. indesign starts > selection tool is active
2. click on page tool > message appears > page tool is active
3. click on "another tool1" > "another tool1" is active
4. click on "another tool2" > "another tool1" is active
5. click on page tool > nothing happens, the icon of the page tool is active, but the icon of the "another tool2" is still active, too, and "another tool2" is still activated
6. click on "another tool3" > "another tool3" is active
7. click on page tool > message appears > page tool is active
8. ......
Any idea why that is?
My script:
#targetengine myToolListener
app.toolBoxTools.addEventListener ("afterAttributeChanged", changeToolAlert);
function changeToolAlert() {
    if(app.toolBoxTools.currentToolName == "Seitenwerkzeug") {
        alert ("Message", "Title");
    exit(); //i tried with and without this!
At the beginning I tried to use an confirm message instead of an alert, which had the same problem and I thought it might be because the changing doesn't work... but it seems I can't even work with the information without something "crashing" in the background?
My previous confirm Function:
function changeToolConfirm() {
    if(app.toolBoxTools.currentToolName == "Seitenwerkzeug") {
        var confirmDialog = confirm("Do you really want to activate the page tool?", true);
        if(!confirmDialog) {
            app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;
I really hope someone has an idea
Best,
Anke

Hi Anke,
The problem, I think, comes from the fact that the Page Tool selection event (which you listen to via afterAttributeChanged) needs some time to complete. Since the alert() or confirm() instruction gives the focus to a new modal window before the event life-cycle is finished, the GUI becomes instable, the PageTool icon state is not properly restored, and your event management goes wrong.
A way to solve this might be to queue a temporary IdleEvent listener once the Page Tool selection event is caught. That is, we do not initiate any modal dialog as long as the GUI is refreshing.
Something like this:
//====================================================
// PageToolDisclaimer.jsx
//====================================================
// Should be useable as a startup script, no #targetengine required
// NB - MutationEvent is known to create a global 'evt' variable
// so we don't seem to need a persistent session engine here :-)
// That's why the active script File is used as the event handler
(function(/*File*/EVENT_HANDLER, /*str*/TASK_NAME, /*uint*/TASK_TIME, /*str*/PAGE_TOOL_NAME)
    var t;
    // Installer
    if( !(t=app.toolBoxTools.eventListeners).length )
        t.add(MutationEvent.AFTER_ATTRIBUTE_CHANGED, EVENT_HANDLER);
        return;
    // IdleEvent handler (--> confirm)
    if( (t=app.idleTasks.itemByName(TASK_NAME)).isValid )
        t.eventListeners.everyItem().remove();
        t.remove();
        if( !confirm("***WARNING***\rDo you really want to activate the page tool?", true) )
            app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;
        return;
    // PageTool event handler
    if( ('evt' in $.global) && 'currentToolName'==evt.attributeName && PAGE_TOOL_NAME==evt.attributeValue )
        evt.stopPropagation();
        app.idleTasks.add({name:TASK_NAME, sleep:TASK_TIME})
              .addEventListener(IdleEvent.ON_IDLE, EVENT_HANDLER);
})(app.activeScript, 'WaitPageTool', 400, app.translateKeyString('$ID/Page Tool'));
Hope that helps.
@+
Marc

Similar Messages

  • iframe link to #anchor only works the second time

    I am exploring a way of delivering a local HTML file into a Web Content frame in such a way that it starts at a specific HTML anchor rather than the top of the HTML page.
    Now, since DPS's Web Content overlay does not support the URL+anchor string format (e.g. myfile.html#myanchor), I thought I might achieve the desired result by loading a little HTML file into the Web Content overlay that points to the intended HTML file and its named anchor in an <iframe> tag.
    Here's where it gets annoying. The solution works... but only on the second and subsequent times you call up the Web Content overlay (normally hidden in a MSO).
    The first time I call up the Web Content overlay in my DPS article on the iPad, however, the HTML page displays but not at the specificed anchor point, nor indeed at the top of the HTML page - instead, it seems to start a little bit further down from the anchor. If I dismiss the Web Content overlay (in my case, switch to a different Object State) and return to it, the HTML reloads starting at anchor position, exactly as intended. I can close the folio, re-open it and still the behaviour is correct. It was only the first time that it fails to do the right thing.
    I am very happy that my solution works on the second, third and all subsequent occasions, but it's pretty important that readers see it working first time.
    I have tried delaying the autoplay of the Web Content but this does not make any difference. The anchor is designated using the 'id' tag.
    Any ideas?

    Thanks, Neil. But you can ask your guys to stand down. Someone got me a strong coffee this evening and I realised I was tackling this from the wrong angle. I have since seen this issue of HTML pages requiring a refresh before displaying correctly in other circumstances, even in Chrome on my computer, so I doubt it is a specific DPS problem - possibly it's something in webkit.
    Anyway, the coffee made me realise that I don't need an iframe to load another HTML file at an anchor. All I need is to pop a little GoToAnchor script in the <head> tag and a call at the beginning of the <body> tag.
    One day, if someone fixes Adobe's utterly broken Cookbooks site, I'll upload a bunch of these recipes.

  • Open PDF documents only works on second time

    Hallo,
    When I want to open a PDF document in a navigation iView the first time only a white browser-page will be opened. When I close the empty window and open the document once again, the acrobat reader displays the document.
    We are on NP 7.0 Stack 15 and IE 6.
    Any idea?
    Regards,
    Gerhard

    Hello Gerhard,
    I think this was a known issue, have a look at the following links:
    http://www.adobe.com/support/techdocs/328233.html
    http://www.adobe.com/support/techdocs/331025.html
    There were also some known PDF issues which were fixed in newer versions, see SAP note 1146711 and 700177.
    Regards,
    Lorcan.

  • When I open and close firefox about 3 times, I get the blue screen of death. Why? Also Firefox only opens every second time, and I have to close it manually to fix the problem. How can I avoid this?

    I have to close the firefox from my task list. Before I do that I can't open any web browser. This is really annoying, and I have had this problem only after using Firefox 4.

    Read Bill Hunt on BSOD http://forums.adobe.com/thread/772169
    -and an Encore fix http://forums.adobe.com/thread/1060443

  • Suspends only every second time when lid closed

    Hello everybody, my problem is as the  subject: to suspend I have to close usually the laptop lid twice.
    I'm using kde, but I have also used years ago fluxbox, tweaking scripts and using laptop-mode (which is not running now). Thanks in advance for every idea where to look.
    /etc/acpi$ cat handler.sh
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
    maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
    setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
    set $*
    case "$1" in
    button/power)
    case "$2" in
    PBTN|PWRF)
    logger "PowerButton pressed: $2"
    poweroff
    logger "ACPI action undefined: $2"
    esac
    button/sleep)
    case "$2" in
    SLPB|SBTN)
    echo -n mem >/sys/power/state
    logger "ACPI action undefined: $2"
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    case "$4" in
    00000000)
    echo -n $minspeed >$setspeed
    #/etc/laptop-mode/laptop-mode start
    00000001)
    echo -n $maxspeed >$setspeed
    #/etc/laptop-mode/laptop-mode stop
    esac
    logger "ACPI action undefined: $2"
    esac
    battery)
    case "$2" in
    BAT0)
    case "$4" in
    00000000)
    logger 'Battery online'
    00000001)
    logger 'Battery offline'
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    case "$3" in
    close)
    logger 'LID closed'
    open)
    logger 'LID opened'
    logger "ACPI action undefined: $3"
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    # vim:set ts=4 sw=4 ft=sh et:

    I actually do not understand who comands at the end - this handler.sh or the settings in Kde-powermanaging, I guess it's the second, I did remove the actions for suspend on lid close time ago. I made a test now, when I change handler.sh and check "do nothing when lid close" in kde powersettings happens exact the same: performs suspend every second time only.
    button/lid)
    case "$3" in
    close)
    logger 'LID closed'
    /usr/sbin/pm-suspend
    open)
    logger 'LID opened'
    logger "ACPI action undefined: $3"
    esac
    Last edited by steff (2012-07-21 17:08:46)

  • Cursor only updates every second row

    Hello Helpful Peoples
    I have a table with a set of delivery dates, and am wanting to add a date on which a reminder flag should be raised by the system. The delivery dates are already populated and I'm wanting to add functionality where the end user can set how many days prior they are reminded.
    I've opened a cursor to retrieve all the current due dates from my source table. When I loop through this cursor and update the reminder date and reminder text, my code is only updating every second row.
    I can't work out why this code seems to skip a row every time it updates a record. Is anyone able to assist?
    declare
    v_date rep_delivery.reminderdate%type;
    v_rownum number;
    CURSOR reminder_cur
    IS
    SELECT DEL.DUEDATE
    FROM REP_DELIVERY DEL
    WHERE DEL.REP_ID = :P212_REP_ID:
    FOR UPDATE OF DEL.REMINDERDATE;
    begin
    FOR x IN reminder_cur LOOP
    FETCH reminder_cur INTO v_date;
    EXIT WHEN reminder_cur%NOTFOUND;
    v_date := v_date - to_number(:P212_REMDAYS);
    UPDATE REP_DELIVERY DEL2
    SET DEL2.REMINDERDATE = v_date
    WHERE CURRENT OF reminder_cur;
    UPDATE REP_DELIVERY DEL3
    SET DEL3.REMINDERTEXT = :P212_DESCRIPTION
    WHERE CURRENT OF reminder_cur;
    END LOOP;
    commit;
    end;

    Oolite,
    Use this code:
    DECLARE
       v_date   rep_delivery.reminderdate%TYPE;
       CURSOR reminder_cur
       IS
          SELECT        ROWID, duedate
                   FROM rep_delivery
                  WHERE rep_id = :p212_rep_id
          FOR UPDATE OF reminderdate;
    BEGIN
       FOR x IN reminder_cur
       LOOP
          v_date := x.duedate;
          v_date := v_date - TO_NUMBER (:p212_remdays);
          UPDATE rep_delivery del2
             SET del2.reminderdate = v_date,
                 del2.remindertext = :p212_description
           WHERE ROWID = x.ROWID;
       END LOOP;
       COMMIT;
    END;and it will work for you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • EPCF not working the second time

    Hi all,
    we are developing using four iViews in the same screen: one left menu, one top menu, a footer and a main view in the central part.
    We use launch a EPCM.raiseEvent by clicking in one link in the footer which causes a change in a field in the central iView by using a handlerFunction launched by a EPCM.subscribeEvent and it works properly. Then we click on a button in the central iView who changes the complete content of the iview by going to another JSP. It only changes the central part. Then by raising a different or the same event in the footer to change another field in the new central part (by using another EPCM.subscribeEvent sentence) don't work. We have detected that the second time we try to use the EPCF around the application it does not work. Only works the first time the first screen is loaded.
    What could be the problem????
    Many Thanks.

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • Submit to an iframe, only happens every other time

    We have a navigation (tree widget) that is generated with JavaScript. Clicking on the tree nodes is supposed to load an url i the content iframe.
    A hidden form is used for this. By clicking on a tree node a hidden inputs field value is set and the hidden form is submitted that does a post to the iframe (using target on the form).
    First question would be if this is the best solution for this. Feels a bit hacky.
    But the main problem is that the form is only submitted every other time.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    >In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)

  • Cme 2 cme voip calls work every other time

    have 2 cme's with checkpoint in between.
    cme A & cme B
    ip phone on cme a call cue on cme b works every time
    ip phone on cme a calls ip phone on cme b it works every other time consistantly. One time ringback next time busy.
    phones in both locations are on different subnet from cue.
    i've tried to disable ip cef to no avail and still getting problem.
    debugs give disconnect cause code as network not available.
    any ideas as to why it would work one time and not the next?
    some sort of timer / timeout?
    thanks,
    paul.

    You've probably mapped that key to a key command or controller assignment.
    If you know what you are doing, then check the key commands and controller assignments window for unwanted MIDI mappings.
    If you are not sure, then back up and move your Logic preference files and restart Logic to see if it goes away.
    If it still happens, option click on File -> New to create a new song and try that. It it works OK in that, you may have something in your environment that's interpreting specific note values and doing something with them (or filtering them).

  • My AS3 buttons only work the first time

    I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
    The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played.
    The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere.
    Totally doing my head in trying find a solution and if anyone can help and show me what I'm doing wrong that would be really really helpful. Here's the code I used for the buttons...
    stop();
    function mainBtnOver(event:MouseEvent):void {
    event.target.gotoAndPlay("over");
    function mainBtnOut(event:MouseEvent):void {
    event.target.gotoAndPlay("out");
    ///////// INDIVIDUAL BUTTON CLICK FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {
    gotoAndPlay("01Movie");
    function mainBtn2Down(event:MouseEvent):void {
    gotoAndPlay("02Movie");
    function mainBtn3Down(event:MouseEvent):void {
    gotoAndPlay("03Movie");
    function mainBtn4Down(event:MouseEvent):void {
    gotoAndPlay("04Movie");
    function mainBtn5Down(event:MouseEvent):void {
    gotoAndPlay("05Movie");
    ////////// Button 1 Listeners
    mainBtn1.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener(MouseEvent.CLICK, mainBtn1Down);
    ////////// Button 2 Listeners
    mainBtn2.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener(MouseEvent.CLICK, mainBtn2Down);
    ////////// Button 3 Listeners
    mainBtn3.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener(MouseEvent.CLICK, mainBtn3Down);
    ////////// Button 4 Listeners
    mainBtn4.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener(MouseEvent.CLICK, mainBtn4Down);
    ////////// Button 5 Listeners
    mainBtn5.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener(MouseEvent.CLICK, mainBtn5Down);
    I'm sure it's me doing something very stupid - I'm very new to AS3. Any help much appreciated.
    Thanks :-)

    If the frame labels you are going to have movie clips that have your presentation content, you should use gotoAndStop("frameLabel") instead of gotoAndPlay("frameLabel"). There's no need to play the main timeline when you go to and show any of these movie clips. I'm not sure if this is your issue, though... Using your code, I had no problems.
    Also, you can set up your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT events. This isn't necessarily better, but just another method. Although I might use other ways to animate a button, I do like to reduce the code it takes to use the buttons in an interface, and only use CLICK in most cases.

  • Adobe Reader 9.5.1 on Linux crashes every second time I try to print

    I can print perfectly.
    But if Adobe Reader stays open, and I try to print the same document a second time, or I try to print another document: In the moment I click on the Ok button in the print dialog, Adobe Reader crashes (window disappears) and nothing is printed.
    I have Adobe Reader 9.5.1 and cups 1.4.8.
    (Because I have cups 1.4.8 I don't think my problem is related to http://forums.adobe.com/thread/691846).

    I have the exact same problem with Adobe Reader 9.5.1 on Linux, gentoo build from sources of course, and the second time I try to print, or try to open a file or save, it means the second time you try to open a dialog that has something to do with system, it crashes...
    It can be reproducible on other distributions.
    :s
    I will not patch anything, but alternatives does not work as expected, also embedded into firefox has the same behaviour, and when it crashes you can not open any other pdf until you restart firefox and plugin reloads again...

  • HT201320 Setting up mail only works the first time and then fails...

    Hello,
    I own a new iPad 4.
    Setting up my own mail accounts works great for the first time (I see new mails and I can sent mails), but the second time I open the Mail-App it complains about my mail settings.
    Mails are provided from my own domain. Using other mail clients I don't have issues.
    Setting is based on IMAP ssl/port 993 and ssl/578. iPad runs on IOS6.1.
    Do you have an idea why?
    Carsten

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Alerts only working half the time, phone only rings half the time on incoming calls,settings all ok

    my alerts for text messages, vip emails and voicemail are only sounding half the time and same with phone ringing on incoming calls...have checked settings, all are ok, have powered phone down and back up..any suggestions why i dont get alerts and phone ring all the time?

    You can use http://support.apple.com/kb/ts5180. if that does not work you have to do repair.

  • Blackberry Messenger only works at certain times of day.

    a few days ago my phone crashed, leaving my blackberry messanger not working, a few hours later it started up and everything was fine, however the next day my bbm only worked early in the morning and then started up again around 4, and its did it again this morning, i have restarted it many times, i have deleted it then reinstalled it, its just very annoying it doesnt work, and im not really sure what to do with  it
    any help would be much appreciated

    Ella, that's got to be some intermittent connect with your mobile provider.
    The next time your BBMessenger is NOT working, check On your Manage Connections screen, click on the Services Status. What is the status of the BlackBerry Internet Service at that time?
    ALSO:  You have your mobile phone number listed as your "My Mobile Provider" or carrier. Putting your phone number out on the internet on these public forums for the world to see, is not wise. To change that, at the top of this page click on My Settings > Personal Profile > Personal Information, and in the entry block for "Carrier" type the name of your mobile provider.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Bumblebee does not work every first time I start it

    When I ran
    optirun firefox
    it failed and showed
    [ 7661.980841] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 16651 does not belong to any known session
    [ 7661.980869] [ERROR]Aborting because fallback start is disabled.
    But when I tried running again it worked.
    journalctl:
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929488] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929507] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929519] [ERROR][XORG] (EE) systemd-logind: failed to get session: PID 16651 does not belong to any known session
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929523] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929527] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929538] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929545] [ERROR][XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929548] [ERROR][XORG] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929551] [ERROR][XORG] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929554] [ERROR][XORG] (EE) NVIDIA(GPU-0): README for additional information.
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929557] [ERROR][XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929560] [ERROR][XORG] (EE) NVIDIA(0): Failing initialization of X screen 0
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929564] [ERROR][XORG] (EE) Screen(s) found, but none have a usable configuration.
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929567] [ERROR][XORG] (EE)
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929570] [ERROR][XORG] (EE) no screens found(EE)
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929573] [ERROR][XORG] (EE)
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929577] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929580] [ERROR][XORG] (EE)
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929583] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.980795] [ERROR]X did not start properly
    8月 28 22:12:24 swordfeng-PC kernel: nvidia 0000:01:00.0: irq 50 for MSI/MSI-X
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:24 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069802] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069813] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069828] [ERROR][XORG] (EE) systemd-logind: failed to get session: PID 16943 does not belong to any known session
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069831] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069833] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069839] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069845] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069849] [ERROR][XORG] (EE) NVIDIA(0): Failed to initiate mode change.
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069851] [ERROR][XORG] (EE) NVIDIA(0): Failed to complete mode change
    8月 28 22:12:25 swordfeng-PC bumblebeed[254]: [ 7831.069859] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
    8月 28 22:12:29 swordfeng-PC kernel: [drm] Module unloaded
    8月 28 22:12:29 swordfeng-PC kernel: bbswitch: disabling discrete graphics
    8月 28 22:12:29 swordfeng-PC kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
    8月 28 22:12:29 swordfeng-PC kernel: pci 0000:01:00.0: Refused to change power state, currently in D0
    8月 28 22:12:29 swordfeng-PC bumblebeed[254]: [ 7834.886245] [ERROR][XORG] (EE) Server terminated successfully (0). Closing log file.
    22:09 is the first time and 22:12 is the second time.
    I tried what the wiki Troubleshooting section 'systemd-logind: failed to get session: PID XXX does not belong to any known session' said but nothing changed.

    Did you do this:
    8月 28 22:09:36 swordfeng-PC bumblebeed[254]: [ 7661.929577] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
    Any additional info there?
    optirun -vv firefox
    could give some hints too.
    Did it ever work? Or is this your first try with bumblebee on that system?

Maybe you are looking for

  • RAW Support in InDesign and Roundtrip to Lightroom

    Julianne Kost suggested I suggest this feature when I spoke to her yesterday at PhotoPlus in NYC. I am currently designing wedding albums using InDesign and I like being able to roundtrip to Photoshop and back. But most images in the book are not bro

  • MacBook Pro 15" MacBookPro1,1 reset itself?

    Hi guys. i bought my mac on 2006. i am using it till today. However, it startsto reset itself while i amorking on applications like word excel photoshop. I couldn't understand what is the problem? Is it about software or hardware? can it be about hea

  • Associative Arrays, Indexes vs. Full Table Scans

    Hello, I just started using ODP.Net to connect my .Net Web Service to our Oracle Database. The reason why I switched to ODP.Net is support for arrays. If I wanted to pass in arrays to the procedure I had to pass it in through a varchar2 in a CSV form

  • MIRO-Import Procurement

    Hi, When i do MIRO for Customs dept. selecting the option as 'planned delivery costs' a dialog box used to be displayed asking for which vendor to be selelected for IV (main vendor / Customs dept). Now suddenly it is behaving differently. ie it is no

  • Cant sign in Adobe reader for Mac

    Says hold and drag mouse but wont allow me to sign docs anymore.  It used to work.  Anyone else having trouble or suggestions?