<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>10471</bug_id>
          
          <creation_ts>2006-12-20 22:11:13 +0300</creation_ts>
          <short_desc>Suspend2 userui support</short_desc>
          <delta_ts>2010-10-09 11:11:33 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mkinitrd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10469</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Rahmatullin">wrar</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>gns</cc>
    
    <cc>led</cc>
    
    <cc>shrek</cc>
    
    <cc>silicium</cc>
    
    <cc>vsu</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43591</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2006-12-20 22:11:13 +0300</bug_when>
    <thetext>Чтобы в early userspace (между запуском процесса просыпания и окончанием 
копирования старого ядра на место) отображался прогресс, в initrd необходимо 
положить статически собранную реализацию suspend2_userui и указать путь к ней в 
/sys/power/suspend2/user_interface/program.
Таким образом, неважно, как называется эта программа в основной системе, её 
всегда можно положить как /bin/suspend2_userui и указать этот путь в /sys (что 
опять же не потребует правки linuxrc при смене имени).

Итак, предлагается:
1. Некий ключ к mkinitrd (--with-suspend2-userui ?), принимающий имя файла в 
системе. Этот файл будет установлен как /bin/suspend2_userui в initrd.
2. Изменение linuxrc, что-то типа
[ -x /bin/suspend2_userui ] &amp;&amp; echo /bin/suspend2_userui &gt; /sys/power/suspend2/
user_interface/program
Вставить это необходимо непосредственно перед вызовом /sys/power/suspend2/
do_resume (см. #10469).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43592</commentid>
    <comment_count>1</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-12-20 22:16:08 +0300</bug_when>
    <thetext>а) какой именно ui - важно, для fbsplash еще и тему нужно класть

б) давай лучше сделаем в системе suspend2_userui с помощью alternatives. 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43593</commentid>
    <comment_count>2</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-12-20 22:20:36 +0300</bug_when>
    <thetext>надо еще потестить, конечно, но у меня без модификации linuxrc хватался
suspend2userui_fbsplash, положенный на initrd в /usr/sbin/ . причем как его
находят в системе после atomic copy - понятно, мы уже загрузили копию старого
ядра со всеми переменными. а вот как находят до того - непонятно. но работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43596</commentid>
    <comment_count>3</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-12-20 22:38:43 +0300</bug_when>
    <thetext>и еще. для чего нам иметь в системе userui_*, собранный _и_ динамически, _и_ _
статически? 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43597</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2006-12-20 22:46:26 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; и еще. для чего нам иметь в системе userui_*, собранный _и_ динамически, _и_ _
&gt; статически? 
Порезать на разные пакеты и не ставить статический, если он не нужен.
:)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73957</commentid>
    <comment_count>5</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2008-07-11 14:25:55 +0400</bug_when>
    <thetext>Оно ещё актуально?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73980</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2008-07-12 11:39:33 +0400</bug_when>
    <thetext>Да вроде да.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73982</commentid>
    <comment_count>7</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2008-07-12 16:52:35 +0400</bug_when>
    <thetext>у нас нет ядер с suspend2 и уже никогда не будет</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104015</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-12-09 05:15:48 +0300</bug_when>
    <thetext>At this time, I&apos;m reluctant to add any enhancements to this monolithic mkinitrd.

Please have a look at another implementations that have modular architecture, e.g. make-initrd by Alexey Gladkov and Kirill Shutemov.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113326</commentid>
    <comment_count>9</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-10-09 11:11:33 +0400</bug_when>
    <thetext>Уже неинтересно.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>