<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1818</bug_id>
          
          <creation_ts>2011-12-09 13:45:07 +0000</creation_ts>
          <short_desc>ROOTLESS_X fails to start X, unable to load libraries</short_desc>
          <delta_ts>2012-03-30 05:19:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>graphics</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Resolved after bug 1889 fixed.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M2</target_milestone>
          <dependson>1889</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>edwin.zhai</cc>
    
    <cc>josh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17545</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-12-09 13:45:07 +0000</bug_when>
    <thetext>First seen in the n450 (Bug 1797), using ROOTLESS_X causes X to fail to load with errors loading dri libraries that do exist on the filesystem. ROOTLESS_X has been disabled in n450 for now. Atom-pc still sees this failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17706</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-12-16 08:21:20 +0000</bug_when>
    <thetext>Does http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ccc84d94b8ff59365806b57fe90a7bacdeb16b5d fix this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17708</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-12-16 09:57:21 +0000</bug_when>
    <thetext>No, but the error changes:

Fatal server error:
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17804</commentid>
    <comment_count>3</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-12-21 17:41:45 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; No, but the error changes:
&gt; 
&gt; Fatal server error:
&gt; xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

This is he same error mesg if I enabled rootless X in qemu. The issue is that rootless requires KMS in kernel config, which depends on physical DRI. Qemu doesn&apos;t support DRI, so it failed. What about n450?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18062</commentid>
    <comment_count>4</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-01-10 17:48:10 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; No, but the error changes:
&gt; 
&gt; Fatal server error:
&gt; xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

I have checked latest master (021848b), things are a little bit different:
rootless X start fail because xuser has no home directory. After create a new user with right permission as xuser, I can start rootless X as the new user.

Also checked the kernel config of atom-pc, KMS is enabled by default. 

So the issue here is that useradd.bbclass fail to add the home directory even with the fix http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ccc84d94b8ff59365806b57fe90a7bacdeb16b5d

I&apos;ll open a new bug for it, and make this bug depends on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18670</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-02-21 11:51:05 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; &gt; No, but the error changes:
&gt; &gt; 
&gt; &gt; Fatal server error:
&gt; &gt; xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
&gt; 
&gt; I have checked latest master (021848b), things are a little bit different:
&gt; rootless X start fail because xuser has no home directory. After create a new
&gt; user with right permission as xuser, I can start rootless X as the new user.

Do we know why rootless X requires a home directory? Presumably this is just so that the X server has somewhere to write files? Can we use /tmp instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18678</commentid>
    <comment_count>6</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-02-21 17:14:34 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; 
&gt; &gt; I have checked latest master (021848b), things are a little bit different:
&gt; &gt; rootless X start fail because xuser has no home directory. After create a new
&gt; &gt; user with right permission as xuser, I can start rootless X as the new user.
&gt; 
&gt; Do we know why rootless X requires a home directory? Presumably this is just so
&gt; that the X server has somewhere to write files? Can we use /tmp instead?

It&apos;s not the perfect solution. Even can start rootless X, we still have various failure without HOME directory. e.g open matchbox-terminal.

Fix it on useradd is the right way, I think,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19671</commentid>
    <comment_count>7</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-03-30 05:19:05 +0000</bug_when>
    <thetext>After bug 1889 got fixed, I have tested latest atom image @
http://autobuilder.pokylinux.org/nightly/20120328-1/machines/atom-pc/core-image-sato-atom-pc.hddimg

rootless X start successfully.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>